Skip to content

Commit

Permalink
Remove commented out implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
eljobe committed Sep 18, 2024
1 parent 9f0fff0 commit 614d631
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions arbitrator/arbutil/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,6 @@ impl FromStr for Bytes32 {
Ok(Bytes32(b))
}
}
/*
impl FromStr for Bytes32 {
type Err = hex::FromHexError;
fn from_str(s: &str) -> Result<Self, Self::Err> {
let trimmed = match s.strip_prefix("0x") {
Some(t) => t,
None => s,
};
let bytes = hex::decode(trimmed)?;
let mut b = [0u8; 32];
b.copy_from_slice(&bytes);
Ok(Self(b))
}
}
*/

impl TryFrom<&[u8]> for Bytes32 {
type Error = std::array::TryFromSliceError;
Expand Down

0 comments on commit 614d631

Please sign in to comment.