From 535e4c20e88f131189241bcf1625ff7c32e0443b Mon Sep 17 00:00:00 2001 From: Corey Schuhen <cschuhen@gmail.com> Date: Thu, 14 Mar 2024 08:21:45 +1000 Subject: [PATCH] Remove unused methods including incorrect #[must_use... --- embassy-stm32/src/can/bx/mod.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/embassy-stm32/src/can/bx/mod.rs b/embassy-stm32/src/can/bx/mod.rs index ae8bafaa8..33e702c6e 100644 --- a/embassy-stm32/src/can/bx/mod.rs +++ b/embassy-stm32/src/can/bx/mod.rs @@ -151,17 +151,6 @@ impl IdReg { Self(reg & 0xFFFF_FFFE) } - /// Sets the remote transmission (RTR) flag. This marks the identifier as - /// being part of a remote frame. - #[must_use = "returns a new IdReg without modifying `self`"] - /*fn with_rtr(self, rtr: bool) -> IdReg { - if rtr { - Self(self.0 | Self::RTR_MASK) - } else { - Self(self.0 & !Self::RTR_MASK) - } - }*/ - /// Returns the identifier. fn to_id(self) -> Id { if self.is_extended() { @@ -189,11 +178,6 @@ impl IdReg { self.0 & Self::IDE_MASK != 0 } - /// Returns `true` if the identifier is a standard identifier. - /*fn is_standard(self) -> bool { - !self.is_extended() - }*/ - /// Returns `true` if the identifer is part of a remote frame (RTR bit set). fn rtr(self) -> bool { self.0 & Self::RTR_MASK != 0