fix: hidden error
This commit is contained in:
parent
ab24e5f10d
commit
60717d639c
1 changed files with 7 additions and 7 deletions
14
src/main.rs
14
src/main.rs
|
|
@ -145,13 +145,13 @@ impl State {
|
|||
}
|
||||
#[must_use]
|
||||
fn pick_and_load_image(&mut self) -> Task<Message> {
|
||||
let task;
|
||||
(self.error, task) = match utils::pick_image() {
|
||||
Ok(path) => (None, self.load_image(path)),
|
||||
Err(e) => (Some(e), Task::none()),
|
||||
};
|
||||
|
||||
task
|
||||
match utils::pick_image() {
|
||||
Ok(path) => self.load_image(path),
|
||||
Err(e) => {
|
||||
self.error = Some(e);
|
||||
Task::none()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn save_image(&mut self) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue