mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 11:30:47 -05:00
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:
@@ -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)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user