Skip to content

Commit

Permalink
fix collection handling (address new clippy warnings)
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Jul 17, 2023
1 parent b41e935 commit 36182af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wallet/core/src/storage/local/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ where
pub fn load(&self, ids: &[Id]) -> Result<Vec<Arc<Data>>> {
Ok(ids
.iter()
.filter_map(|id| match self.map.get(id).cloned() {
Some(data) => Some(data),
.map(|id| match self.map.get(id).cloned() {
Some(data) => data,
None => panic!("requested id `{}` was not found in collection", id),
})
.collect())
Expand Down

0 comments on commit 36182af

Please sign in to comment.