This commit is contained in:
ShuiRuTian
2021-01-12 00:21:43 +08:00
parent d877390882
commit cf3042f881

View File

@@ -448,8 +448,10 @@ pub(crate) fn handle_will_rename_files(
let old_name = from_path.file_stem()?.to_str()?; let old_name = from_path.file_stem()?.to_str()?;
let new_name = to_path.file_stem()?.to_str()?; let new_name = to_path.file_stem()?.to_str()?;
match (old_name, new_name) { match (old_name, new_name) {
("mod","mod") =>Some((snap.url_to_file_id(&from).ok()?, new_name.to_string())), ("mod", "mod") => {
_=>None Some((snap.url_to_file_id(&from).ok()?, new_name.to_string()))
}
_ => None,
} }
} }
} }