Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(recording): satisfy range clippy lint

Richie McIlroy66ed72b97b4a
diff --git a/crates/recording/src/track_heal.rs b/crates/recording/src/track_heal.rs
index 4ddaba840..0f8eba189 100644
--- a/crates/recording/src/track_heal.rs
+++ b/crates/recording/src/track_heal.rs
@@ -531,8 +531,7 @@ fn evaluate_display_stretch(inputs: &DisplayStretchInputs) -> Option<StretchDeci
}
let ratio = inputs.display_secs / expected_span_secs;
- if ratio < DISPLAY_MIN_STRETCH_RATIO
- || ratio > DISPLAY_MAX_STRETCH_RATIO
+ if !(DISPLAY_MIN_STRETCH_RATIO..=DISPLAY_MAX_STRETCH_RATIO).contains(&ratio)
|| inputs.display_secs - expected_span_secs < DISPLAY_MIN_STRETCH_SECS
{
return None;