src: drop a lot of unwraps()

This commit is contained in:
2026-06-22 10:23:24 +02:00
parent 70ec40a880
commit 7cbff539df
8 changed files with 142 additions and 87 deletions
+2 -2
View File
@@ -299,10 +299,10 @@ impl Ui {
}
},
next_volume = self.audio.next() => {
self.audio_level = next_volume
self.audio_level = next_volume.expect("Audio volume event stream has died")
},
transcription_result = self.transcription.next() => {
self.predictions.insert(PredictionAction::ConversationAppend(ConversationEntry::Spoken(Speaker::User, transcription_result))).await;
self.predictions.insert(PredictionAction::ConversationAppend(ConversationEntry::Spoken(Speaker::User, transcription_result.expect("Transcription stream has died")))).await;
},
}
}