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 25, 2023
1 parent 45095b4 commit 6046dd4
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 6046dd4

Please sign in to comment.