Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Oct 13, 2020
1 parent 82d7d7e commit 770fb22
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/storage-plus/src/indexes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,9 @@ where
}

fn pks_by_index<'c>(&self, store: &'c S, idx: &[u8]) -> Box<dyn Iterator<Item = Vec<u8>> + 'c> {
let data = match self.idx_map.may_load(store, &idx) {
Ok(Some(item)) => vec![item.pk.to_vec()],
Ok(None) => vec![],
Err(_) => unimplemented!(),
let data = match self.idx_map.may_load(store, &idx).unwrap() {
Some(item) => vec![item.pk.to_vec()],
None => vec![],
};
Box::new(data.into_iter())
}
Expand Down

0 comments on commit 770fb22

Please sign in to comment.