Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Update src/array/growable/dictionary.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge Leitao <[email protected]>
  • Loading branch information
ritchie46 and jorgecarleitao authored Nov 7, 2021
1 parent 695278f commit 316c26c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/array/growable/dictionary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ impl<'a, T: DictionaryKey> Growable<'a> for GrowableDictionary<'a, T> {
self.key_values.extend(
values
.iter()
// `.unwrap_or(0)` because this operation does not check for null values, which may contain any key.
.map(|x| T::from_usize(offset + x.to_usize().unwrap_or(0)).unwrap()),
);
}
Expand Down

0 comments on commit 316c26c

Please sign in to comment.