diff --git a/libs/portable/src/bin_reader.rs b/libs/portable/src/bin_reader.rs index b98b696eb..5e3287948 100644 --- a/libs/portable/src/bin_reader.rs +++ b/libs/portable/src/bin_reader.rs @@ -368,8 +368,7 @@ mod tests { assert_eq!( files .iter() - .filter(|f| normalize_path(&f.path) - == "data/flutter_assets/assets/icon.ico") + .filter(|f| normalize_path(&f.path) == "data/flutter_assets/assets/icon.ico") .count(), 1 ); diff --git a/libs/portable/src/main.rs b/libs/portable/src/main.rs index 6b830f516..56a6ee36f 100644 --- a/libs/portable/src/main.rs +++ b/libs/portable/src/main.rs @@ -85,7 +85,9 @@ fn previous_package_files(dir: &Path) -> Vec { } fn normalized(path: &str) -> String { - path.replace('\\', "/").trim_start_matches("./").to_lowercase() + path.replace('\\', "/") + .trim_start_matches("./") + .to_lowercase() } // meta.toml is plain text in a user-writable directory, and it now drives deletion,