fix cargo clippy err

This commit is contained in:
weisd
2024-11-03 10:25:17 +08:00
parent d4a220bddc
commit 2aba454318
4 changed files with 24 additions and 24 deletions
+3 -3
View File
@@ -421,12 +421,12 @@ async fn load_healing_tracker(disk: &Option<DiskStore>) -> Result<HealingTracker
)));
}
healing_tracker.id = disk_id;
return Ok(healing_tracker);
Ok(healing_tracker)
} else {
return Err(Error::from_string("loadHealingTracker: disk not have id"));
Err(Error::from_string("loadHealingTracker: disk not have id"))
}
} else {
return Err(Error::from_string("loadHealingTracker: nil drive given"));
Err(Error::from_string("loadHealingTracker: nil drive given"))
}
}
+2 -2
View File
@@ -335,7 +335,7 @@ pub async fn heal_sequence_start(h: Arc<HealSequence>) {
}
},
None => {
return;
}
}
@@ -462,7 +462,7 @@ impl AllHealState {
}
}
return (None, false);
(None, false)
}
async fn get_heal_sequence(&self, path: &str) -> Option<HealSequence> {