We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33f0eba commit 51b6394Copy full SHA for 51b6394
der/src/asn1/integer/uint.rs
@@ -219,8 +219,8 @@ mod allocating {
219
220
fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self> {
221
let bytes = BytesOwned::decode_value_parts(reader, header, Self::TAG)?;
222
- let result =
223
- Self::new(decode_to_slice(bytes.as_slice()).map_err(|kind| reader.error(kind))?)?;
+ let bytes = decode_to_slice(bytes.as_slice()).map_err(|kind| reader.error(kind))?;
+ let result = Self::new(bytes)?;
224
225
// Ensure we compute the same encoded length as the original any value.
226
if result.value_len()? != header.length() {
0 commit comments