src: drop a lot of unwraps()
This commit is contained in:
@@ -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;
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user