mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 12:50:54 +00:00
run clippy
This commit is contained in:
parent
8689398032
commit
8af6e25edc
@ -29,8 +29,7 @@ impl Agent {
|
|||||||
|
|
||||||
fn find_boot_path(&self, prefix: &str) -> Result<String> {
|
fn find_boot_path(&self, prefix: &str) -> Result<String> {
|
||||||
let vmlinuz = read_dir("/boot")?
|
let vmlinuz = read_dir("/boot")?
|
||||||
.filter(|x| x.is_ok())
|
.filter_map(|x| x.ok())
|
||||||
.map(|x| x.unwrap())
|
|
||||||
.filter(|x| {
|
.filter(|x| {
|
||||||
x.file_name()
|
x.file_name()
|
||||||
.to_str()
|
.to_str()
|
||||||
|
Loading…
Reference in New Issue
Block a user