From 05207cafeab2a7e1584c19ca4cff35a4e26481c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 9 Aug 2022 16:18:55 +0300 Subject: [PATCH] raptorq: Derive `Eq` for some more structs warning: you are deriving `PartialEq` and can implement `Eq` --> net/raptorq/src/fecscheme.rs:13:24 | 13 | #[derive(Clone, Debug, PartialEq)] | ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq` | = note: `#[warn(clippy::derive_partial_eq_without_eq)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq warning: you are deriving `PartialEq` and can implement `Eq` --> net/raptorq/src/fecscheme.rs:38:24 | 38 | #[derive(Clone, Debug, PartialEq)] | ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eq --- net/raptorq/src/fecscheme.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/raptorq/src/fecscheme.rs b/net/raptorq/src/fecscheme.rs index 1f62eddf2..6693fca4f 100644 --- a/net/raptorq/src/fecscheme.rs +++ b/net/raptorq/src/fecscheme.rs @@ -10,7 +10,7 @@ pub const MAX_ENCODING_SYMBOL_SIZE: usize = 65536; // RFC6681, section 8.1.1.1 pub const FEC_SCHEME_ID: u32 = 6; -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq, Eq)] pub struct DataUnitHeader { pub flow_indication: u8, pub len_indication: u16, @@ -35,7 +35,7 @@ impl DataUnitHeader { } // RFC6881, section 8.1.3 -#[derive(Clone, Debug, PartialEq)] +#[derive(Clone, Debug, PartialEq, Eq)] pub struct RepairPayloadId { pub initial_sequence_num: u16, pub source_block_len: u16,