Skip to content

Commit

Permalink
fix(de): remove a level of indirection for Bytes deserialization
Browse files Browse the repository at this point in the history
`serde_bytes::Deserialize for &[u8]` just calls
`serde::Deserialize for &[u8]`.
  • Loading branch information
Xiretza committed May 27, 2022
1 parent d919de7 commit cf489f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl<'de: 'a, 'a> Deserialize<'de> for &'a Bytes {
where
D: Deserializer<'de>,
{
Deserialize::deserialize(deserializer).map(Bytes::new)
serde::Deserialize::deserialize(deserializer).map(Bytes::new)
}
}

Expand Down

0 comments on commit cf489f8

Please sign in to comment.