Skip to content

Commit 44015f1

Browse files
committed
Inline From impl
As is customary we can inline this `From` implementation.
1 parent 091187e commit 44015f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/primitives/decode.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,7 @@ impl std::error::Error for SegwitCodeLengthError {
976976
}
977977

978978
impl From<CodeLengthError> for SegwitCodeLengthError {
979+
#[inline]
979980
fn from(e: CodeLengthError) -> Self { Self(e.encoded_length) }
980981
}
981982

0 commit comments

Comments
 (0)