Fix IndexedBacking trait specification
This commit is contained in:
parent
7184ddb9b0
commit
64030bd349
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ pub trait IndexedBacking<D: Clone + Send + Sync, P: PartialOrd + Clone + Send +
|
||||||
PureBacking<Pair<D, P>>
|
PureBacking<Pair<D, P>>
|
||||||
{
|
{
|
||||||
/// Update an item's priority
|
/// 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
|
/// Remove an item from the queue
|
||||||
fn remove(data: D) -> bool;
|
fn remove(&mut self, data: D) -> bool;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue