Skip to content

Commit f28ffd0

Browse files
committed
Make k_smallest work with just alloc
1 parent 11b2058 commit f28ffd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/k_smallest.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use std::collections::BinaryHeap;
2-
use std::cmp::Ord;
1+
use alloc::collections::BinaryHeap;
2+
use core::cmp::Ord;
33

44
pub(crate) fn k_smallest<T: Ord, I: Iterator<Item = T>>(mut iter: I, k: usize) -> BinaryHeap<T> {
55
if k == 0 { return BinaryHeap::new(); }

0 commit comments

Comments
 (0)