diff --git a/evm/src/generation/mod.rs b/evm/src/generation/mod.rs index 72a0dca9..9c1b6c2b 100644 --- a/evm/src/generation/mod.rs +++ b/evm/src/generation/mod.rs @@ -1,4 +1,4 @@ -use std::collections::{BTreeSet, HashMap, HashMap, HashSet}; +use std::collections::{BTreeSet, HashMap}; use std::sync::atomic::AtomicBool; use std::sync::Arc; diff --git a/evm/src/util.rs b/evm/src/util.rs index fa19ef09..ee2d9607 100644 --- a/evm/src/util.rs +++ b/evm/src/util.rs @@ -80,11 +80,6 @@ pub(crate) fn u256_to_usize(u256: U256) -> Result { u256.try_into().map_err(|_| ProgramError::IntegerTooLarge) } -/// Converts a `U256` to a `u8`, erroring in case of overlow instead of panicking. -pub(crate) fn u256_to_u8(u256: U256) -> Result { - u256.try_into().map_err(|_| ProgramError::IntegerTooLarge) -} - /// Converts a `U256` to a `bool`, erroring in case of overlow instead of panicking. pub(crate) fn u256_to_bool(u256: U256) -> Result { if u256 == U256::zero() {