fix: resolve review regressions and align dependencies

This commit is contained in:
Hakan Seven committed 2026-09-17 07:47:15 +03:00
1 parent 95cf265aaa
commit a27545c379
15 files changed
+63 -57

No files matched your search

+1
View File
@@ -1016,6 +1016,7 @@ mod printer_properties_tests {
);
}
#[cfg(target_os = "windows")]
#[test]
fn windows_opens_selected_printer_or_printer_list() {
assert_eq!(
+4 -2
View File
@@ -64,9 +64,11 @@ fn normalize_core(raw: &str, fold_case: bool) -> String {
}
// 4. Case fold: Windows filesystems are case-insensitive, so identity
// must be too. Elsewhere case is significant and preserved.
// must be too. Native non-Windows paths remain case-sensitive.
let mut joined = stack.join("/");
if fold_case && cfg!(windows) {
// A drive/UNC path keeps Windows identity semantics even when the host
// application runs elsewhere and is inspecting a drawing created there.
if fold_case && (cfg!(windows) || !prefix.is_empty()) {
joined = joined.to_lowercase();
}