From 64030bd3499454e4a5286508c622fb829e1ec24e Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Sat, 11 Jan 2025 22:37:56 +1300 Subject: [PATCH] Fix IndexedBacking trait specification --- src/backing/indexed/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backing/indexed/mod.rs b/src/backing/indexed/mod.rs index 6579634..6ab0e7c 100644 --- a/src/backing/indexed/mod.rs +++ b/src/backing/indexed/mod.rs @@ -6,7 +6,7 @@ pub trait IndexedBacking> { /// Update an item's priority - fn update(data: D, priority: P) -> Result<(), ()>; + fn update(&mut self, data: D, priority: P) -> bool; /// Remove an item from the queue - fn remove(data: D) -> bool; + fn remove(&mut self, data: D) -> bool; }