diff options
| author | Aljoscha Meyer <AljoschaMeyer@users.noreply.github.com> | 2024-07-06 14:38:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-06 14:38:00 +0200 |
| commit | 9bfdeb592c422b355ac96086dbac8a6dfdaa6c73 (patch) | |
| tree | f79b1d2427c492411c3a86397ebcc649335ac7c1 | |
| parent | 2c14dd3b12d29749465a84429a4643da5c4e3934 (diff) | |
| download | rust-9bfdeb592c422b355ac96086dbac8a6dfdaa6c73.tar.gz rust-9bfdeb592c422b355ac96086dbac8a6dfdaa6c73.zip | |
Run formatter on alloc/src/boxed.rs
| -rw-r--r-- | library/alloc/src/boxed.rs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/library/alloc/src/boxed.rs b/library/alloc/src/boxed.rs index d67b0ac37eb..b817cf855a5 100644 --- a/library/alloc/src/boxed.rs +++ b/library/alloc/src/boxed.rs @@ -839,7 +839,7 @@ impl<T, A: Allocator> Box<[T], A> { /// /// ``` /// #![feature(allocator_api, new_uninit)] - /// + /// /// use std::alloc::System; /// /// let mut values = Box::<[u32]>::try_new_uninit_slice(3, System)?; @@ -856,7 +856,10 @@ impl<T, A: Allocator> Box<[T], A> { /// ``` #[unstable(feature = "allocator_api", issue = "32838")] #[inline] - pub fn try_new_uninit_slice_in(len: usize, alloc: A) -> Result<Box<[mem::MaybeUninit<T>], A>, AllocError> { + pub fn try_new_uninit_slice_in( + len: usize, + alloc: A, + ) -> Result<Box<[mem::MaybeUninit<T>], A>, AllocError> { let ptr = if T::IS_ZST || len == 0 { NonNull::dangling() } else { @@ -879,7 +882,7 @@ impl<T, A: Allocator> Box<[T], A> { /// /// ``` /// #![feature(allocator_api, new_uninit)] - /// + /// /// use std::alloc::System; /// /// let values = Box::<[u32]>::try_new_zeroed_slice(3, System)?; @@ -892,7 +895,10 @@ impl<T, A: Allocator> Box<[T], A> { /// [zeroed]: mem::MaybeUninit::zeroed #[unstable(feature = "allocator_api", issue = "32838")] #[inline] - pub fn try_new_zeroed_slice_in(len: usize, alloc: A) -> Result<Box<[mem::MaybeUninit<T>], A>, AllocError> { + pub fn try_new_zeroed_slice_in( + len: usize, + alloc: A, + ) -> Result<Box<[mem::MaybeUninit<T>], A>, AllocError> { let ptr = if T::IS_ZST || len == 0 { NonNull::dangling() } else { |
