refactor: use Result with a unit type over Option
this helps convey intent, and makes it more consistent
This commit is contained in:
parent
dab5f8e09f
commit
ab24e5f10d
2 changed files with 9 additions and 10 deletions
|
|
@ -155,7 +155,7 @@ impl State {
|
|||
}
|
||||
|
||||
fn save_image(&mut self) {
|
||||
self.error = utils::save_image(self.image.as_ref());
|
||||
self.error = utils::save_image(self.image.as_ref()).err();
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
|
|
|
|||
Loading…
Reference in a new issue