chore: refine code

This commit is contained in:
5ec1cff
2024-11-22 19:20:13 +08:00
parent 520455a0df
commit b9883dfec3
2 changed files with 4 additions and 4 deletions

View File

@@ -284,7 +284,7 @@ pub fn handle_updated_modules() -> Result<()> {
log::error!("Failed to remove old {}: {}", old_dir.display(), e);
}
}
if let Err(e) = rename(&module, &old_dir) {
if let Err(e) = rename(module, &old_dir) {
log::error!("Failed to move new module {}: {}", module.display(), e);
}
}