aboutsummaryrefslogtreecommitdiff
path: root/src/bytes_mut.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytes_mut.rs')
-rw-r--r--src/bytes_mut.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs
index 734f4df..1b4a4d9 100644
--- a/src/bytes_mut.rs
+++ b/src/bytes_mut.rs
@@ -1283,9 +1283,7 @@ impl Extend<u8> for BytesMut {
// TODO: optimize
// 1. If self.kind() == KIND_VEC, use Vec::extend
- // 2. Make `reserve` inline-able
for b in iter {
- self.reserve(1);
self.put_u8(b);
}
}