]> git.lizzy.rs Git - rust.git/commitdiff
formatting
authorSparkyPotato <noob.sparkypotato@gmail.com>
Tue, 5 Apr 2022 20:06:46 +0000 (01:36 +0530)
committerSparkyPotato <noob.sparkypotato@gmail.com>
Tue, 5 Apr 2022 20:06:46 +0000 (01:36 +0530)
library/alloc/src/raw_vec.rs

index f73b3866c9cb50184a2753ac39692a5a835c6b87..9dbac3c36ffb2871ce5e93f30dc3aef1fa94b9c3 100644 (file)
@@ -168,7 +168,7 @@ pub unsafe fn into_box(self, len: usize) -> Box<[MaybeUninit<T>], A> {
 
     #[cfg(not(no_global_oom_handling))]
     fn allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Self {
-               // Don't allocate here because `Drop` will not deallocate when `capacity` is 0.
+        // Don't allocate here because `Drop` will not deallocate when `capacity` is 0.
         if mem::size_of::<T>() == 0 || capacity == 0 {
             Self::new_in(alloc)
         } else {