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
This commit is contained in:
Sebastian Dröge 2022-08-09 16:18:55 +03:00 committed by Sebastian Dröge
parent cbb55c2322
commit 05207cafea

View file

@ -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,