Skip to content

Commit

Permalink
Inline From impl for error type
Browse files Browse the repository at this point in the history
Error conversion `from` can be inlined, it is a trivial wrap.
  • Loading branch information
tcharding committed Oct 26, 2023
1 parent e59c211 commit 0605d44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ impl std::error::Error for HexToArrayError {
}

impl From<HexToBytesError> for HexToArrayError {
#[inline]
fn from(e: HexToBytesError) -> Self { Self::Conversion(e) }
}

Expand Down

0 comments on commit 0605d44

Please sign in to comment.