diff options
| author | RichardWGNR <[email protected]> | 2025-04-11 04:31:32 +0500 |
|---|---|---|
| committer | RichardWGNR <[email protected]> | 2025-04-11 04:31:32 +0500 |
| commit | aae3f7fb70600851240501c9eced2cbc248ca700 (patch) | |
| tree | b41998ede3ad4997b904428e93eb5e95f2ea5446 | |
| parent | 4d903a713eb1db05a8465c74e6c6cd71fefc5d4e (diff) | |
Fix rustfmt #4075
| -rw-r--r-- | embassy-stm32/src/can/frame.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-stm32/src/can/frame.rs b/embassy-stm32/src/can/frame.rs index f1bc81ec3..f621b8bd5 100644 --- a/embassy-stm32/src/can/frame.rs +++ b/embassy-stm32/src/can/frame.rs | |||
| @@ -128,7 +128,7 @@ impl ClassicData { | |||
| 128 | pub fn raw(&self) -> &[u8] { | 128 | pub fn raw(&self) -> &[u8] { |
| 129 | &self.bytes | 129 | &self.bytes |
| 130 | } | 130 | } |
| 131 | 131 | ||
| 132 | /// Raw mutable read access to data. | 132 | /// Raw mutable read access to data. |
| 133 | pub fn raw_mut(&mut self) -> &mut [u8] { | 133 | pub fn raw_mut(&mut self) -> &mut [u8] { |
| 134 | &mut self.bytes | 134 | &mut self.bytes |
| @@ -213,7 +213,7 @@ impl Frame { | |||
| 213 | pub fn data(&self) -> &[u8] { | 213 | pub fn data(&self) -> &[u8] { |
| 214 | &self.data.raw() | 214 | &self.data.raw() |
| 215 | } | 215 | } |
| 216 | 216 | ||
| 217 | /// Get mutable reference to data | 217 | /// Get mutable reference to data |
| 218 | pub fn data_mut(&mut self) -> &mut [u8] { | 218 | pub fn data_mut(&mut self) -> &mut [u8] { |
| 219 | self.data.raw_mut() | 219 | self.data.raw_mut() |
| @@ -323,7 +323,7 @@ impl FdData { | |||
| 323 | pub fn raw(&self) -> &[u8] { | 323 | pub fn raw(&self) -> &[u8] { |
| 324 | &self.bytes | 324 | &self.bytes |
| 325 | } | 325 | } |
| 326 | 326 | ||
| 327 | /// Raw mutable read access to data. | 327 | /// Raw mutable read access to data. |
| 328 | pub fn raw_mut(&mut self) -> &mut [u8] { | 328 | pub fn raw_mut(&mut self) -> &mut [u8] { |
| 329 | &mut self.bytes | 329 | &mut self.bytes |
| @@ -407,7 +407,7 @@ impl FdFrame { | |||
| 407 | pub fn data(&self) -> &[u8] { | 407 | pub fn data(&self) -> &[u8] { |
| 408 | &self.data.raw() | 408 | &self.data.raw() |
| 409 | } | 409 | } |
| 410 | 410 | ||
| 411 | /// Get mutable reference to data | 411 | /// Get mutable reference to data |
| 412 | pub fn data_mut(&mut self) -> &mut [u8] { | 412 | pub fn data_mut(&mut self) -> &mut [u8] { |
| 413 | self.data.raw_mut() | 413 | self.data.raw_mut() |
