Fix clippy warnings across native codebase

Address clippy warnings including collapsible match statements in
bootstages, daemon, su daemon, and db modules, as well as iterator
loops in files.rs.

Assisted-by: Gemini 3.6 Flash
This commit is contained in:
topjohnwu
2026-07-31 22:57:41 -07:00
committed by John Wu
parent 05099cce89
commit d04635478a
5 changed files with 30 additions and 53 deletions
+2 -5
View File
@@ -422,16 +422,13 @@ impl Utf8CStr {
}
let mut path = cstr::buf::default();
let mut components = self.split('/').filter(|s| !s.is_empty());
let components = self.split('/').filter(|s| !s.is_empty());
if self.starts_with('/') {
path.append_path("/");
}
loop {
let Some(s) = components.next() else {
break;
};
for s in components {
path.append_path(s);
path.mkdir(mode)?;
}