Use unwrap_or_default().

This commit is contained in:
Andy Duplain
2026-05-15 13:52:41 +01:00
parent e0de0d8835
commit bafed70f51
@@ -105,7 +105,7 @@ async fn archive_corrupted_database<P: AsRef<Path>>(db_path: P) -> io::Result<()
}
}
let err = last_err.unwrap();
let err = last_err.unwrap_or_default();
error!(
"Failed to rename corrupt database file: {} to {}",
db_path.display(),