mirror of
https://github.com/dandavison/delta.git
synced 2024-10-04 20:07:18 +03:00
Fix new 1.58 clippy lints
This commit is contained in:
parent
056c186459
commit
c323fa529b
@ -168,7 +168,7 @@ pub fn explain_ansi(line: &str, colorful: bool) -> String {
|
|||||||
if colorful {
|
if colorful {
|
||||||
format!("({}){}", style.to_painted_string(), style.paint(s))
|
format!("({}){}", style.to_painted_string(), style.paint(s))
|
||||||
} else {
|
} else {
|
||||||
format!("({}){}", style.to_string(), s)
|
format!("({}){}", style, s)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.collect()
|
.collect()
|
||||||
|
@ -481,7 +481,7 @@ where
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
let pid_range = my_pid.saturating_sub(10)..my_pid.saturating_add(20);
|
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
|
// Processes which were not refreshed do not exist for sysinfo, so by selectively
|
||||||
// letting it know about processes the `find_sibling..` function will only
|
// letting it know about processes the `find_sibling..` function will only
|
||||||
// consider these.
|
// consider these.
|
||||||
|
Loading…
Reference in New Issue
Block a user