Skip to content

Commit d16d312

Browse files
committed
Apply clippy suggestion
1 parent 0fb0bba commit d16d312

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

worker/src/docker/service.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ impl DockerService {
9999
.filter(|c| {
100100
c.names.iter().any(|name| name.contains(TASK_PREFIX))
101101
&& task_id
102-
.as_ref()
103-
.map_or(true, |id| !c.names.iter().any(|name| name.contains(id)))
102+
.as_ref().is_none_or(|id| !c.names.iter().any(|name| name.contains(id)))
104103
})
105104
.cloned()
106105
.collect();

0 commit comments

Comments
 (0)