refactor: annotate State::allocate_image with must_use

This commit is contained in:
electria 2026-07-09 20:51:06 -07:00
commit dab5f8e09f
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -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");