Skip to content

Commit 851b59b

Browse files
committed
remove duplicate assertion
we already assert this at the top of the method
1 parent a472ba6 commit 851b59b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/bytes_mut.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,6 @@ impl BytesMut {
318318
unsafe {
319319
let mut other = self.shallow_clone();
320320
other.set_start(at);
321-
assert!(at <= self.cap, "set_end out of bounds");
322-
323321
self.cap = at;
324322
self.len = cmp::min(self.len, at);
325323
other

0 commit comments

Comments
 (0)