mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
Address new clippy warnings
This commit is contained in:
@@ -1221,6 +1221,6 @@ mod argh_shared {
|
||||
fn new_line(current_line: &mut String, out: &mut String) {
|
||||
out.push('\n');
|
||||
out.push_str(current_line);
|
||||
current_line.truncate(0);
|
||||
current_line.clear();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,11 +140,8 @@ pub fn find_preinit_device() -> String {
|
||||
if !info.fs_option.split(',').any(|s| s == "rw") {
|
||||
return None;
|
||||
}
|
||||
if let Some(path) = Path::new(&info.source).parent() {
|
||||
if !path.ends_with("by-name") && !path.ends_with("block") {
|
||||
return None;
|
||||
}
|
||||
} else {
|
||||
let path = Path::new(&info.source).parent()?;
|
||||
if !path.ends_with("by-name") && !path.ends_with("block") {
|
||||
return None;
|
||||
}
|
||||
// use device major number to filter out device-mapper
|
||||
|
||||
Reference in New Issue
Block a user