Necessary when upgrading to bitcoin v0.31 since Error::InvalidLength is replaced with hex_conservative::error::InvalidLengthError which is marked as #[non_exhaustive] and therefore cannot be constructed directly outside of that crate.
This change shouldn't affect behavior, since the implementation we're switching to (here) essentially does what we were previously doing here.
Necessary when upgrading to bitcoin v0.31 since
Error::InvalidLength
is replaced withhex_conservative::error::InvalidLengthError
which is marked as#[non_exhaustive]
and therefore cannot be constructed directly outside of that crate.This change shouldn't affect behavior, since the implementation we're switching to (here) essentially does what we were previously doing here.