add explicit usize type annotation to range iterator in test

This commit is contained in:
Denizhan Dakılır
2025-09-12 02:18:49 +03:00
parent 5b9e849415
commit 70102f5f6e

View File

@@ -2321,7 +2321,7 @@ mod tests {
let mut small_vec = SmallVec::<i32, 4>::new();
(0..8).for_each(|i| small_vec.push(i));
(0..8).for_each(|i| {
(0..8usize).for_each(|i| {
assert_eq!(small_vec.get(i), Some(i as i32));
});