Skip to content

Commit fb08026

Browse files
author
Gianmarco Garrisi
committed
Format
1 parent 77c8215 commit fb08026

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/store.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,7 @@ where
343343
///
344344
/// The item is found in **O(1)** thanks to the hash table.
345345
/// The operation is performed in **O(log(N))** time.
346-
pub fn change_priority<Q>(
347-
&mut self,
348-
item: &Q,
349-
mut new_priority: P,
350-
) -> Option<(P, Position)>
346+
pub fn change_priority<Q>(&mut self, item: &Q, mut new_priority: P) -> Option<(P, Position)>
351347
where
352348
I: Borrow<Q>,
353349
Q: Eq + Hash + ?Sized,
@@ -363,11 +359,7 @@ where
363359
/// Change the priority of an Item using the provided function.
364360
/// The item is found in **O(1)** thanks to the hash table.
365361
/// The operation is performed in **O(log(N))** time (worst case).
366-
pub fn change_priority_by<Q, F>(
367-
&mut self,
368-
item: &Q,
369-
priority_setter: F,
370-
) -> Option<Position>
362+
pub fn change_priority_by<Q, F>(&mut self, item: &Q, priority_setter: F) -> Option<Position>
371363
where
372364
I: Borrow<Q>,
373365
Q: Eq + Hash + ?Sized,

0 commit comments

Comments
 (0)