Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fmt

Richie McIlroy2fa26324fdba
diff --git a/crates/rendering/src/layers/cursor.rs b/crates/rendering/src/layers/cursor.rs
index 2fa10cbbd..10274197e 100644
--- a/crates/rendering/src/layers/cursor.rs
+++ b/crates/rendering/src/layers/cursor.rs
@@ -341,15 +341,18 @@ impl CursorLayer {
let mut loaded_cursor = None;
let cursor_shape = match &constants.recording_meta.inner {
- RecordingMetaInner::Studio(StudioRecordingMeta::MultipleSegments {
- inner:
- MultipleSegments {
- cursors: Cursors::Correct(cursors),
- ..
- },
- }) => cursors
- .get(&interpolated_cursor.cursor_id)
- .and_then(|v| v.shape),
+ RecordingMetaInner::Studio(studio) => match studio.as_ref() {
+ StudioRecordingMeta::MultipleSegments {
+ inner:
+ MultipleSegments {
+ cursors: Cursors::Correct(cursors),
+ ..
+ },
+ } => cursors
+ .get(&interpolated_cursor.cursor_id)
+ .and_then(|v| v.shape),
+ _ => None,
+ },
_ => None,
};