mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-29 00:00:15 +02:00
Remove an unnecessary else branch (#662)
This commit is contained in:
+2
-2
@@ -726,11 +726,11 @@ impl BytesMut {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} else {
|
|
||||||
new_cap = cmp::max(new_cap, original_capacity);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
new_cap = cmp::max(new_cap, original_capacity);
|
||||||
|
|
||||||
// Create a new vector to store the data
|
// Create a new vector to store the data
|
||||||
let mut v = ManuallyDrop::new(Vec::with_capacity(new_cap));
|
let mut v = ManuallyDrop::new(Vec::with_capacity(new_cap));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user