From dab5f8e09fc1c292c0b57b8211c1131ac4c25045 Mon Sep 17 00:00:00 2001 From: electria Date: Thu, 9 Jul 2026 20:51:06 -0700 Subject: [PATCH] refactor: annotate State::allocate_image with must_use --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 5d1c684..3aef49b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -158,6 +158,7 @@ impl State { self.error = utils::save_image(self.image.as_ref()); } + #[must_use] fn allocate_image(&self) -> Task { let Some(image) = self.image.as_ref() else { eprintln!("no image to allocate");