Skip to content

Commit c7bbd44

Browse files
author
Gianmarco Garrisi
committed
fmt
1 parent 5f63ba9 commit c7bbd44

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/store.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,14 @@ impl<I, P, H> Store<I, P, H> {
302302
}
303303

304304
#[inline(always)]
305-
pub unsafe fn get_priority_from_position(&self, position: Position) -> &P { unsafe {
306-
self.map
307-
.get_index(self.heap.get_unchecked(position.0).0)
308-
.unwrap()
309-
.1
310-
}}
305+
pub unsafe fn get_priority_from_position(&self, position: Position) -> &P {
306+
unsafe {
307+
self.map
308+
.get_index(self.heap.get_unchecked(position.0).0)
309+
.unwrap()
310+
.1
311+
}
312+
}
311313
}
312314

313315
impl<I, P, H> Store<I, P, H>

0 commit comments

Comments
 (0)