Skip to content

Commit

Permalink
Merge pull request #32 from wqld/fix/fix-cargo-clippy-error
Browse files Browse the repository at this point in the history
fix(rsln): fix cargo clippy issue
  • Loading branch information
wqld authored Mar 27, 2024
2 parents 20539c1 + fe83527 commit 6ec6141
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions rsln/src/types/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ impl TryFrom<&[u8]> for GenlOps {
}
}

impl Deref for GenlOps {
type Target = Vec<GenlOp>;

fn deref(&self) -> &Self::Target {
&self.0
}
}

#[derive(Default, Clone)]
pub struct GenlMulticastGroup {
pub id: u32,
Expand Down Expand Up @@ -88,6 +96,14 @@ impl TryFrom<&[u8]> for GenlMulticastGroups {
}
}

impl Deref for GenlMulticastGroups {
type Target = Vec<GenlMulticastGroup>;

fn deref(&self) -> &Self::Target {
&self.0
}
}

#[derive(Default, Clone)]
pub struct GenlFamily {
pub id: u16,
Expand Down

0 comments on commit 6ec6141

Please sign in to comment.