Skip to content

Commit b56f836

Browse files
committed
Fix nitpick
1 parent a040d6d commit b56f836

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/bytearray.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,7 @@ impl<'de, const N: usize> Visitor<'de> for ByteArrayVisitor<N> {
217217
where
218218
E: Error,
219219
{
220-
Ok(ByteArray {
221-
bytes: v
222-
.as_bytes()
223-
.try_into()
224-
.map_err(|_| E::invalid_length(v.len(), &self))?,
225-
})
220+
self.visit_bytes(v.as_bytes())
226221
}
227222
}
228223

0 commit comments

Comments
 (0)