Skip to content

Commit 8d01996

Browse files
Run formatter on alloc/src/boxed.rs
1 parent c3b602a commit 8d01996

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

alloc/src/boxed.rs

+10-4
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ impl<T, A: Allocator> Box<[T], A> {
839839
///
840840
/// ```
841841
/// #![feature(allocator_api, new_uninit)]
842-
///
842+
///
843843
/// use std::alloc::System;
844844
///
845845
/// let mut values = Box::<[u32]>::try_new_uninit_slice(3, System)?;
@@ -856,7 +856,10 @@ impl<T, A: Allocator> Box<[T], A> {
856856
/// ```
857857
#[unstable(feature = "allocator_api", issue = "32838")]
858858
#[inline]
859-
pub fn try_new_uninit_slice_in(len: usize, alloc: A) -> Result<Box<[mem::MaybeUninit<T>], A>, AllocError> {
859+
pub fn try_new_uninit_slice_in(
860+
len: usize,
861+
alloc: A,
862+
) -> Result<Box<[mem::MaybeUninit<T>], A>, AllocError> {
860863
let ptr = if T::IS_ZST || len == 0 {
861864
NonNull::dangling()
862865
} else {
@@ -879,7 +882,7 @@ impl<T, A: Allocator> Box<[T], A> {
879882
///
880883
/// ```
881884
/// #![feature(allocator_api, new_uninit)]
882-
///
885+
///
883886
/// use std::alloc::System;
884887
///
885888
/// let values = Box::<[u32]>::try_new_zeroed_slice(3, System)?;
@@ -892,7 +895,10 @@ impl<T, A: Allocator> Box<[T], A> {
892895
/// [zeroed]: mem::MaybeUninit::zeroed
893896
#[unstable(feature = "allocator_api", issue = "32838")]
894897
#[inline]
895-
pub fn try_new_zeroed_slice_in(len: usize, alloc: A) -> Result<Box<[mem::MaybeUninit<T>], A>, AllocError> {
898+
pub fn try_new_zeroed_slice_in(
899+
len: usize,
900+
alloc: A,
901+
) -> Result<Box<[mem::MaybeUninit<T>], A>, AllocError> {
896902
let ptr = if T::IS_ZST || len == 0 {
897903
NonNull::dangling()
898904
} else {

0 commit comments

Comments
 (0)