From 0605d4446c5e807e8baee2fa7ab8ff18894d6d2c Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 25 Oct 2023 14:34:12 +1100 Subject: [PATCH] Inline From impl for error type Error conversion `from` can be inlined, it is a trivial wrap. --- src/parse.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parse.rs b/src/parse.rs index 8736379..5cb8c1a 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -147,6 +147,7 @@ impl std::error::Error for HexToArrayError { } impl From for HexToArrayError { + #[inline] fn from(e: HexToBytesError) -> Self { Self::Conversion(e) } }