From fe83527d87d106501c3742c17a37f4c41c989c5d Mon Sep 17 00:00:00 2001 From: Wongyu Lee Date: Wed, 27 Mar 2024 14:31:02 +0000 Subject: [PATCH] fix(rsln): fix cargo clippy issue --- rsln/src/types/generic.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/rsln/src/types/generic.rs b/rsln/src/types/generic.rs index d883801..75dea1e 100644 --- a/rsln/src/types/generic.rs +++ b/rsln/src/types/generic.rs @@ -46,6 +46,14 @@ impl TryFrom<&[u8]> for GenlOps { } } +impl Deref for GenlOps { + type Target = Vec; + + fn deref(&self) -> &Self::Target { + &self.0 + } +} + #[derive(Default, Clone)] pub struct GenlMulticastGroup { pub id: u32, @@ -88,6 +96,14 @@ impl TryFrom<&[u8]> for GenlMulticastGroups { } } +impl Deref for GenlMulticastGroups { + type Target = Vec; + + fn deref(&self) -> &Self::Target { + &self.0 + } +} + #[derive(Default, Clone)] pub struct GenlFamily { pub id: u16,