Skip to content

Commit 05b5873

Browse files
committed
Apply clippy suggestion
1 parent bda5035 commit 05b5873

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: worker/src/docker/service.rs

+1-2
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)