misc: Fix clippy

This commit is contained in:
Krysztal Huang
2024-06-29 19:06:56 +08:00
parent f780e952ab
commit 0ee628b910
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -238,6 +238,7 @@ fn process_flag_o_n(
}
}
#[allow(clippy::cognitive_complexity)]
pub fn uu_app() -> Command {
Command::new(uucore::util_name())
.version(crate_version!())
+1 -1
View File
@@ -212,7 +212,7 @@ impl ProcessInformation {
pid,
cmdline,
inner_status: fs::read_to_string(dir_append(value.clone(), "status".into()))?,
inner_stat: fs::read_to_string(dir_append(value.clone(), "stat".into()))?,
inner_stat: fs::read_to_string(dir_append(value, "stat".into()))?,
..Default::default()
})
}