style(server): correct clippy warnings

This commit is contained in:
Edouard Vanbelle
2026-05-04 12:46:57 +02:00
parent 97ea87efc2
commit 6e1c435098
4 changed files with 13 additions and 20 deletions
+2 -4
View File
@@ -495,10 +495,8 @@ fn parse_proppatch_favorite(body: &str) -> Option<u8> {
let text = e.decode().ok()?;
return text.trim().parse::<u8>().ok();
}
Ok(Event::End(ref e)) => {
if e.local_name().as_ref() == b"favorite" {
inside_favorite = false;
}
Ok(Event::End(ref e)) if e.local_name().as_ref() == b"favorite" => {
inside_favorite = false;
}
Ok(Event::Eof) => break,
Err(_) => break,