🧹 Replace unsafe unwrap on Mutex lock with unwrap_or_else (#33)

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit is contained in:
Tarasov Aleksandr
2026-03-08 00:43:36 +03:00
committed by GitHub
parent 95761f6a5a
commit c6577cd5e0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ impl App for SoundpadGui {
// Sync audio player state
{
let guard = self.audio_player_state_shared.lock().unwrap();
let guard = self.audio_player_state_shared.lock().unwrap_or_else(|e| e.into_inner());
self.audio_player_state = guard.clone();
}