refact: format 2 files

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2026-08-14 11:38:36 +08:00
parent 2315887619
commit 709f2c6459
2 changed files with 4 additions and 3 deletions

View File

@@ -368,8 +368,7 @@ mod tests {
assert_eq!( assert_eq!(
files files
.iter() .iter()
.filter(|f| normalize_path(&f.path) .filter(|f| normalize_path(&f.path) == "data/flutter_assets/assets/icon.ico")
== "data/flutter_assets/assets/icon.ico")
.count(), .count(),
1 1
); );

View File

@@ -85,7 +85,9 @@ fn previous_package_files(dir: &Path) -> Vec<String> {
} }
fn normalized(path: &str) -> String { 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, // meta.toml is plain text in a user-writable directory, and it now drives deletion,