mirror of https://codeberg.org/topola/topola.git
egui: replace erroneous `.unwrap()` with try expression
This commit is contained in:
parent
a2b8550c12
commit
be03f190a0
|
|
@ -19,6 +19,6 @@ impl<'a> FileReceiver<'a> {
|
|||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
pub fn try_recv(&mut self) -> Result<Cursor<Vec<u8>>, TryRecvError> {
|
||||
Ok(Cursor::new(self.receiver.try_recv().unwrap().into()))
|
||||
Ok(Cursor::new(self.receiver.try_recv()?.into()))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue