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()