refactor: annotate State::allocate_image with must_use
This commit is contained in:
parent
d577fe2e76
commit
dab5f8e09f
1 changed files with 1 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ impl State {
|
|||
self.error = utils::save_image(self.image.as_ref());
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
fn allocate_image(&self) -> Task<Message> {
|
||||
let Some(image) = self.image.as_ref() else {
|
||||
eprintln!("no image to allocate");
|
||||
|
|
|
|||
Loading…
Reference in a new issue