run clippy

This commit is contained in:
Alex Zenla 2024-01-17 08:18:45 -08:00
parent 8689398032
commit 8af6e25edc
No known key found for this signature in database
GPG Key ID: 067B238899B51269

View File

@ -29,8 +29,7 @@ impl Agent {
fn find_boot_path(&self, prefix: &str) -> Result<String> {
let vmlinuz = read_dir("/boot")?
.filter(|x| x.is_ok())
.map(|x| x.unwrap())
.filter_map(|x| x.ok())
.filter(|x| {
x.file_name()
.to_str()