Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit a3fa917

Browse files
committed
Fix formatting
1 parent 0794539 commit a3fa917

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/alloc/mod.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,7 @@ pub trait BuildAllocRef: Sized {
148148
/// * `layout` must *fit* that block of memory
149149
/// * the alignment of the `layout` must match the alignment used to allocate that block of
150150
/// memory
151-
unsafe fn build_alloc_ref(
152-
&self,
153-
ptr: NonNull<u8>,
154-
layout: Option<NonZeroLayout>,
155-
) -> Self::Ref;
151+
unsafe fn build_alloc_ref(&self, ptr: NonNull<u8>, layout: Option<NonZeroLayout>) -> Self::Ref;
156152
}
157153

158154
pub trait DeallocRef: Sized {

src/raw_vec.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,7 @@ impl<T, A: DeallocRef> RawVec<T, A> {
223223
Self::allocate_in(capacity, true, a)
224224
}
225225

226-
fn allocate_in(
227-
capacity: usize,
228-
zeroed: bool,
229-
alloc: A,
230-
) -> Result<Self, CollectionAllocErr<A>>
226+
fn allocate_in(capacity: usize, zeroed: bool, alloc: A) -> Result<Self, CollectionAllocErr<A>>
231227
where
232228
A: AllocRef,
233229
{

0 commit comments

Comments
 (0)