mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-07 00:00:13 +02:00
Remove an unnecessary else branch (#662)
This commit is contained in:
+2
-2
@@ -726,11 +726,11 @@ impl BytesMut {
|
||||
}
|
||||
|
||||
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
|
||||
let mut v = ManuallyDrop::new(Vec::with_capacity(new_cap));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user