Skip to content

Commit 103feb9

Browse files
committed
clippy
1 parent 4a5c780 commit 103feb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rendering/src/decoder/media_foundation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl DecoderHealthMonitor {
9595

9696
let should_warn = self
9797
.last_unhealthy_warning
98-
.map_or(true, |last| last.elapsed() > Duration::from_secs(5));
98+
.is_none_or(|last| last.elapsed() > Duration::from_secs(5));
9999

100100
if should_warn {
101101
self.last_unhealthy_warning = Some(Instant::now());

0 commit comments

Comments
 (0)