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
+5 -5
View File
@@ -29,7 +29,7 @@ impl TryFrom<&str> for AccountStatus {
match s {
"enabled" => Ok(AccountStatus::Enabled),
"disabled" => Ok(AccountStatus::Disabled),
_ => Err(format!("invalid account status: {}", s)),
_ => Err(format!("invalid account status: {s}")),
}
}
}
@@ -737,10 +737,10 @@ mod tests {
};
// Test that all structures can be formatted with Debug
assert!(!format!("{:?}", account_status).is_empty());
assert!(!format!("{:?}", user_auth_type).is_empty());
assert!(!format!("{:?}", user_info).is_empty());
assert!(!format!("{:?}", service_account).is_empty());
assert!(!format!("{account_status:?}").is_empty());
assert!(!format!("{user_auth_type:?}").is_empty());
assert!(!format!("{user_info:?}").is_empty());
assert!(!format!("{service_account:?}").is_empty());
}
#[test]