Skip to content

Commit b801ef7

Browse files
committed
clippy fixes
1 parent 17cda97 commit b801ef7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/concurrent_pinned_vec/into_iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ where
1515
current_last: *const T,
1616
}
1717

18-
impl<'a, T, G> ConcurrentSplitVecIntoIter<T, G>
18+
impl<T, G> ConcurrentSplitVecIntoIter<T, G>
1919
where
2020
G: GrowthWithConstantTimeAccess,
2121
{

src/concurrent_pinned_vec/into_iter_ptr_slices.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ where
107107
}
108108
}
109109

110-
fn drop_fragments(growth: &G, fragments: &mut Vec<UnsafeCell<*mut T>>) {
111-
for f in 0..fragments.len() {
112-
let ptr = unsafe { *fragments[f].get() };
110+
fn drop_fragments(growth: &G, fragments: &mut [UnsafeCell<*mut T>]) {
111+
for (f, cell) in fragments.iter().enumerate() {
112+
let ptr = unsafe { *cell.get() };
113113
match ptr.is_null() {
114114
true => continue,
115115
false => {

0 commit comments

Comments
 (0)