fix:Apply suggestions from clippy 1.88

This commit is contained in:
houseme
2025-06-27 18:16:29 +08:00
parent 35489ea352
commit 749537664f
108 changed files with 642 additions and 682 deletions
+3 -3
View File
@@ -180,7 +180,7 @@ impl FormatV3 {
}
}
Err(Error::other(format!("disk id not found {}", disk_id)))
Err(Error::other(format!("disk id not found {disk_id}")))
}
pub fn check_other(&self, other: &FormatV3) -> Result<()> {
@@ -242,7 +242,7 @@ mod test {
let format = FormatV3::new(1, 4);
let str = serde_json::to_string(&format);
println!("{:?}", str);
println!("{str:?}");
let data = r#"
{
@@ -266,7 +266,7 @@ mod test {
let p = FormatV3::try_from(data);
println!("{:?}", p);
println!("{p:?}");
}
#[test]