From a0cb01ae5f2121581eb90f73b8f661862da12b03 Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Sat, 18 May 2024 16:22:02 +0100 Subject: [PATCH] refactor: make `Ironbar#unique_id` `must_use` --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 551a25b..4b5c3e5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -239,6 +239,7 @@ impl Ironbar { /// Gets a `usize` ID value that is unique to the entire Ironbar instance. /// This is just a static `AtomicUsize` that increments every time this function is called. + #[must_use] pub fn unique_id() -> usize { static COUNTER: AtomicUsize = AtomicUsize::new(1); COUNTER.fetch_add(1, Ordering::Relaxed)