refactor: use Result with a unit type over Option

this helps convey intent, and makes it more consistent
This commit is contained in:
electria 2026-07-09 20:58:44 -07:00
commit ab24e5f10d
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs
2 changed files with 9 additions and 10 deletions

View file

@ -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]