diff --git a/src/ansi/mod.rs b/src/ansi/mod.rs index fe27bbe6..a634b675 100644 --- a/src/ansi/mod.rs +++ b/src/ansi/mod.rs @@ -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() diff --git a/src/utils/process.rs b/src/utils/process.rs index f111e9d4..224eab87 100644 --- a/src/utils/process.rs +++ b/src/utils/process.rs @@ -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.