Skip to content

Commit

Permalink
fixed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
beling committed Sep 28, 2024
1 parent dee0e2c commit a13c485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csf/src/fp/kvset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ impl<'k, K> SlicesMutSource<'k, K> {
impl<'k, K: Sync> KVSet<K> for SlicesMutSource<'k, K> {
#[inline(always)] fn kv_len(&self) -> usize { self.len }

#[inline(always)] fn for_each_key_value<F, P>(&self, mut f: F, retained_hint: P) where F: FnMut(&K, u8), P: FnMut(&K) -> bool {
#[inline(always)] fn for_each_key_value<F, P>(&self, mut f: F, _retained_hint: P) where F: FnMut(&K, u8), P: FnMut(&K) -> bool {
for (k, v) in self.keys[0..self.len].iter().zip(self.values[0..self.len].iter()) {
f(k, *v);
}
}

#[inline(always)] fn map_each_key_value<R, M, P>(&self, mut map: M, retained_hint: P) -> Vec<R>
#[inline(always)] fn map_each_key_value<R, M, P>(&self, mut map: M, _retained_hint: P) -> Vec<R>
where M: FnMut(&K, u8) -> R, P: FnMut(&K) -> bool
{
self.keys[0..self.len].into_iter().zip(self.values[0..self.len].into_iter()).map(|(k, v)| map(k, *v)).collect()
Expand Down

0 comments on commit a13c485

Please sign in to comment.