From 8af6e25edcfae718a2c486034bfa13d20185ef4e Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Wed, 17 Jan 2024 08:18:45 -0800 Subject: [PATCH] run clippy --- hypha/src/agent/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hypha/src/agent/mod.rs b/hypha/src/agent/mod.rs index 19447e9..af36d5f 100644 --- a/hypha/src/agent/mod.rs +++ b/hypha/src/agent/mod.rs @@ -29,8 +29,7 @@ impl Agent { fn find_boot_path(&self, prefix: &str) -> Result { 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()