mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-22 08:58:15 +00:00
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:
parent
cbb55c2322
commit
05207cafea
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue