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!(
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
);

View File

@@ -85,7 +85,9 @@ fn previous_package_files(dir: &Path) -> Vec<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,