Skip to content

Commit cea36f4

Browse files
committed
Remove useless assertion
1 parent aa0c08a commit cea36f4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/libcore/slice/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -2450,7 +2450,6 @@ impl<'a, T> Iterator for ExactChunks<'a, T> {
24502450
} else {
24512451
let (_, snd) = self.v.split_at(start);
24522452
self.v = snd;
2453-
assert!(self.v.len() == self.chunk_size);
24542453
self.next()
24552454
}
24562455
}
@@ -2537,7 +2536,6 @@ impl<'a, T> Iterator for ExactChunksMut<'a, T> {
25372536
let tmp = mem::replace(&mut self.v, &mut []);
25382537
let (_, snd) = tmp.split_at_mut(start);
25392538
self.v = snd;
2540-
assert!(self.v.len() == self.chunk_size);
25412539
self.next()
25422540
}
25432541
}

0 commit comments

Comments
 (0)