Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
refactor(rendering): simplify cursor decimation unit test
Richie McIlroy9aa3b8067500
diff --git a/crates/rendering/src/cursor_interpolation.rs b/crates/rendering/src/cursor_interpolation.rsindex ad0dec8d8..17208cbde 100644--- a/crates/rendering/src/cursor_interpolation.rs+++ b/crates/rendering/src/cursor_interpolation.rs@@ -567,9 +567,8 @@ mod tests {.map(|i| cursor_move(i as f64 * 2.0, 0.5 + i as f64 * 1e-6, 0.5)).collect();let decimated = decimate_cursor_moves(&moves);- match decimated {- Cow::Owned(v) => assert!(v.len() < moves.len()),- Cow::Borrowed(_) => {}+ if let Cow::Owned(v) = decimated {+ assert!(v.len() < moves.len());}}