Skip to content

Commit 3e272ee

Browse files
committed
fix new clippy rule change
1 parent 4a5f539 commit 3e272ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dsc/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fn ctrlc_handler() {
102102

103103
fn terminate_subprocesses(sys: &System, process: &Process) {
104104
info!("{}: {:?} {}", t!("main.terminatingSubprocess"), process.name(), process.pid());
105-
for subprocess in sys.processes().values().filter(|p| p.parent().map_or(false, |parent| parent == process.pid())) {
105+
for subprocess in sys.processes().values().filter(|p| p.parent().is_some_and(|parent| parent == process.pid())) {
106106
terminate_subprocesses(sys, subprocess);
107107
}
108108

0 commit comments

Comments
 (0)