Skip to content

Commit f928542

Browse files
CoAlloc: BinaryHeap: tidy
1 parent 374e144 commit f928542

File tree

1 file changed

+6
-6
lines changed
  • library/alloc/src/collections/binary_heap

1 file changed

+6
-6
lines changed

library/alloc/src/collections/binary_heap/mod.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@
143143
#![allow(missing_docs)]
144144
#![stable(feature = "rust1", since = "1.0.0")]
145145

146+
use core::fmt;
146147
use core::iter::{FromIterator, FusedIterator, InPlaceIterable, SourceIter, TrustedLen};
147148
use core::mem::{self, swap, ManuallyDrop};
148149
use core::num::NonZeroUsize;
149150
use core::ops::{Deref, DerefMut};
150151
use core::ptr;
151-
use core::fmt;
152152

153153
use crate::alloc::Global;
154154

@@ -1572,10 +1572,10 @@ where
15721572
}
15731573

15741574
#[stable(feature = "fused", since = "1.26.0")]
1575-
impl<T, const COOP_PREFERRED: bool> FusedIterator for Drain<'_, T, COOP_PREFERRED>
1576-
where
1577-
[(); core::alloc::co_alloc_metadata_num_slots_with_preference::<Global>(COOP_PREFERRED)]:,
1578-
{}
1575+
impl<T, const COOP_PREFERRED: bool> FusedIterator for Drain<'_, T, COOP_PREFERRED> where
1576+
[(); core::alloc::co_alloc_metadata_num_slots_with_preference::<Global>(COOP_PREFERRED)]:
1577+
{
1578+
}
15791579

15801580
/// A draining iterator over the elements of a `BinaryHeap`.
15811581
///
@@ -1664,7 +1664,7 @@ impl<T: Ord, const N: usize> From<[T; N]> for BinaryHeap<T> {
16641664

16651665
#[stable(feature = "binary_heap_extras_15", since = "1.5.0")]
16661666
#[allow(unused_braces)]
1667-
impl<T> From<BinaryHeap<T>> for Vec<T, Global, {DEFAULT_COOP_PREFERRED!()}> {
1667+
impl<T> From<BinaryHeap<T>> for Vec<T, Global, { DEFAULT_COOP_PREFERRED!() }> {
16681668
/// Converts a `BinaryHeap<T>` into a `Vec<T>`.
16691669
///
16701670
/// This conversion requires no data movement or allocation, and has

0 commit comments

Comments
 (0)