Skip to content

Commit 31f1a0f

Browse files
committed
Inline From impl
As is customary we can inline this `From` implementation.
1 parent ea5385e commit 31f1a0f

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
@@ -1041,6 +1041,7 @@ impl std::error::Error for SegwitCodeLengthError {
10411041
}
10421042

10431043
impl From<CodeLengthError> for SegwitCodeLengthError {
1044+
#[inline]
10441045
fn from(e: CodeLengthError) -> Self { Self(e.encoded_length) }
10451046
}
10461047

0 commit comments

Comments
 (0)