Fix IndexedBacking trait specification

This commit is contained in:
Michael Bradley 2025-01-11 22:37:56 +13:00
parent 7184ddb9b0
commit 64030bd349
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8

View file

@ -6,7 +6,7 @@ pub trait IndexedBacking<D: Clone + Send + Sync, P: PartialOrd + Clone + Send +
PureBacking<Pair<D, P>>
{
/// 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;
}