Fix new 1.58 clippy lints

This commit is contained in:
Thomas Otto 2022-01-14 00:33:56 +01:00 committed by Dan Davison
parent 056c186459
commit c323fa529b
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ pub fn explain_ansi(line: &str, colorful: bool) -> String {
if colorful {
format!("({}){}", style.to_painted_string(), style.paint(s))
} else {
format!("({}){}", style.to_string(), s)
format!("({}){}", style, s)
}
})
.collect()

View File

@ -481,7 +481,7 @@ where
*/
let pid_range = my_pid.saturating_sub(10)..my_pid.saturating_add(20);
for p in pid_range.clone() {
for p in pid_range {
// Processes which were not refreshed do not exist for sysinfo, so by selectively
// letting it know about processes the `find_sibling..` function will only
// consider these.