Skip to content

Commit

Permalink
fix Indexer's iter_mut (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
flyq authored Oct 23, 2023
1 parent 029eaad commit 542bf03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bellpepper-core/src/lc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ impl<T> Indexer<T> {
self.values.iter().map(|(key, value)| (key, value))
}

pub fn iter_mut(&mut self) -> impl Iterator<Item = (&mut usize, &mut T)> + '_ {
self.values.iter_mut().map(|(key, value)| (key, value))
pub fn iter_mut(&mut self) -> impl Iterator<Item = (&usize, &mut T)> + '_ {
self.values.iter_mut().map(|(key, value)| (&*key, value))
}

pub fn insert_or_update<F, G>(&mut self, key: usize, insert: F, update: G)
Expand Down

0 comments on commit 542bf03

Please sign in to comment.