We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a5c780 commit 103feb9Copy full SHA for 103feb9
crates/rendering/src/decoder/media_foundation.rs
@@ -95,7 +95,7 @@ impl DecoderHealthMonitor {
95
96
let should_warn = self
97
.last_unhealthy_warning
98
- .map_or(true, |last| last.elapsed() > Duration::from_secs(5));
+ .is_none_or(|last| last.elapsed() > Duration::from_secs(5));
99
100
if should_warn {
101
self.last_unhealthy_warning = Some(Instant::now());
0 commit comments