Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(recording): build keyboard recovery paths without unwrap
Richie McIlroy405c3e4d861f
diff --git a/crates/recording/src/recovery.rs b/crates/recording/src/recovery.rsindex 1a81ff905..f7100a303 100644--- a/crates/recording/src/recovery.rs+++ b/crates/recording/src/recovery.rs@@ -941,8 +941,12 @@ impl RecoveryManager {None},keyboard: if keyboard_path.exists() {- let file_name = keyboard_path.file_name().unwrap().to_string_lossy();- Some(RelativePathBuf::from(format!("{segment_base}/{file_name}")))+ keyboard_path.file_name().map(|file_name| {+ RelativePathBuf::from(format!(+ "{segment_base}/{}",+ file_name.to_string_lossy()+ ))+ })} else {None},