ksud: fix clippy

This commit is contained in:
tiann
2023-04-16 22:14:53 +08:00
parent fb4ab44aa5
commit 31bb8c75f5

View File

@@ -250,7 +250,7 @@ fn catch_bootlog() -> Result<()> {
let oldbootlog = logdir.join("boot.old.log");
if bootlog.exists() {
std::fs::rename(&bootlog, &oldbootlog)?;
std::fs::rename(&bootlog, oldbootlog)?;
}
let bootlog = std::fs::File::create(bootlog)?;