style: fix clippy collapsible_if + cargo fmt

This commit is contained in:
Dionisio
2026-02-15 18:04:32 +01:00
parent 1ed20f425f
commit 0be7ef8c0b
11 changed files with 138 additions and 94 deletions
+1 -2
View File
@@ -150,8 +150,7 @@ impl CalDavAdapter {
} else if name_str == "time-range" || name_str.ends_with(":time-range") {
// Parse time-range attributes
for attr in e.attributes().flatten() {
let attr_name =
std::str::from_utf8(attr.key.as_ref()).unwrap_or("");
let attr_name = std::str::from_utf8(attr.key.as_ref()).unwrap_or("");
let attr_value = attr.unescape_value().unwrap_or_default();
if attr_name == "start" {
@@ -60,7 +60,6 @@ impl QualifiedName {
name: name.into(),
}
}
}
impl std::fmt::Display for QualifiedName {