mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-09 14:01:06 +03:00
@@ -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
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user