You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
Address clippy warnings
This commit is contained in:
@@ -60,8 +60,7 @@ fn do_extract_boot_from_payload(
|
||||
return Err(bad_payload!("manifest signature length is zero"));
|
||||
}
|
||||
|
||||
let mut buf = Vec::new();
|
||||
buf.resize(manifest_len, 0u8);
|
||||
let mut buf = vec![0; manifest_len];
|
||||
|
||||
let manifest = {
|
||||
let manifest = &mut buf[..manifest_len];
|
||||
@@ -171,7 +170,7 @@ fn do_extract_boot_from_payload(
|
||||
if !ffi::decompress(data, out_file.as_raw_fd()) {
|
||||
return Err(bad_payload!("decompression failed"));
|
||||
}
|
||||
},
|
||||
}
|
||||
_ => return Err(bad_payload!("unsupported operation type")),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user