Skip to content

Commit

Permalink
fix: replace unwrap with expect for get_index
Browse files Browse the repository at this point in the history
  • Loading branch information
whichqua committed Jan 13, 2025
1 parent 5c1d6bd commit 47d6040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/starknet-os/src/hints/compression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl UniqueValueBucket {
}

fn get_index(&self, value: &BigUint) -> usize {
*self.value_to_index.get(value).unwrap()
*self.value_to_index.get(value).expect("The value provided is not in the index")
}

fn pack_in_felts(&self) -> Vec<BigUint> {
Expand Down

0 comments on commit 47d6040

Please sign in to comment.