mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
formatting
This commit is contained in:
parent
9e9881bcd8
commit
83f659b4bb
@ -168,7 +168,7 @@ impl<T, A: Allocator> RawVec<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 {
|
||||
|
Loading…
Reference in New Issue
Block a user