Skip to content

Commit 51b6394

Browse files
committed
der: let bytes = decode_to_slice
1 parent 33f0eba commit 51b6394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

der/src/asn1/integer/uint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ mod allocating {
219219

220220
fn decode_value<R: Reader<'a>>(reader: &mut R, header: Header) -> Result<Self> {
221221
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))?)?;
222+
let bytes = decode_to_slice(bytes.as_slice()).map_err(|kind| reader.error(kind))?;
223+
let result = Self::new(bytes)?;
224224

225225
// Ensure we compute the same encoded length as the original any value.
226226
if result.value_len()? != header.length() {

0 commit comments

Comments
 (0)