decoder: Avoid unwraps and report issues to UI
Those are mostly cases that should never occur. But especially for rare erros it can be helpful to directly display them in the UI.
This commit is contained in:
parent
5a93ec71da
commit
e8aa5451c3
5 changed files with 86 additions and 37 deletions
|
|
@ -6,7 +6,7 @@ pub use heif::Heif;
|
|||
pub use image_rs_other::ImageRsOther;
|
||||
pub use svg::{Svg, RSVG_MAX_SIZE};
|
||||
|
||||
use super::{Decoder, DecoderUpdate, UpdateSender};
|
||||
use super::{DecoderUpdate, UpdateSender};
|
||||
use crate::util::gettext::*;
|
||||
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue