Skip to content

Commit 361d6b8

Browse files
committed
Update nightly version
1 parent 0c31f6a commit 361d6b8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/rust.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
matrix:
1515
rust:
1616
- stable
17-
- nightly-2020-09-24
17+
- nightly-2021-03-09
1818

1919
steps:
2020
- uses: actions/checkout@v2

src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,12 @@ pub struct LockedHeap<const ORDER: usize>(Mutex<Heap<ORDER>>);
234234
impl<const ORDER: usize> LockedHeap<ORDER> {
235235
/// Creates an empty heap
236236
pub const fn new() -> Self {
237-
LockedHeap(Mutex::new(Heap::new()))
237+
LockedHeap(Mutex::new(Heap::<ORDER>::new()))
238238
}
239239

240240
/// Creates an empty heap
241241
pub const fn empty() -> Self {
242-
LockedHeap(Mutex::new(Heap::new()))
242+
LockedHeap(Mutex::new(Heap::<ORDER>::new()))
243243
}
244244
}
245245

@@ -290,7 +290,7 @@ impl<const ORDER: usize> LockedHeapWithRescue<ORDER> {
290290
#[cfg(feature = "const_fn")]
291291
pub const fn new(rescue: fn(&mut Heap)) -> Self {
292292
LockedHeapWithRescue {
293-
inner: Mutex::new(Heap::new()),
293+
inner: Mutex::new(Heap::<ORDER>::new()),
294294
rescue,
295295
}
296296
}
@@ -299,7 +299,7 @@ impl<const ORDER: usize> LockedHeapWithRescue<ORDER> {
299299
#[cfg(not(feature = "const_fn"))]
300300
pub fn new(rescue: fn(&mut Heap<ORDER>)) -> Self {
301301
LockedHeapWithRescue {
302-
inner: Mutex::new(Heap::new()),
302+
inner: Mutex::new(Heap::<ORDER>::new()),
303303
rescue,
304304
}
305305
}

0 commit comments

Comments
 (0)