Skip to content

Commit 971c860

Browse files
committed
Fix Clippy warning
1 parent 10b564c commit 971c860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/local_transport.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl RegisteredListener {
3636
}
3737

3838
if let Some(pattern) = &self.sink_filter {
39-
sink.map_or(false, |candidate_sink| pattern.matches(candidate_sink))
39+
sink.is_some_and(|candidate_sink| pattern.matches(candidate_sink))
4040
} else {
4141
sink.is_none()
4242
}

0 commit comments

Comments
 (0)