Skip to content

Commit

Permalink
tls_codec_derive(clippy): fixup warning
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo committed Sep 24, 2024
1 parent 1211a78 commit a88e9a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tls_codec/derive/tests/decode_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ fn enum_with_custom_serialized_field() {

#[test]
fn that_skip_attribute_on_struct_works() {
fn test<T: DeserializeBytes>(test: T, expected: T)
fn test<T>(test: T, expected: T)
where
T: std::fmt::Debug + PartialEq + SerializeBytes + Size,
T: DeserializeBytes + std::fmt::Debug + PartialEq + SerializeBytes + Size,
{
let serialized = test.tls_serialize().unwrap();
let (deserialized, rest) = T::tls_deserialize_bytes(&serialized).unwrap();
Expand Down

0 comments on commit a88e9a0

Please sign in to comment.