aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32-wpan
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-10-14 00:01:49 +0200
committerDario Nieuwenhuis <[email protected]>2024-10-14 00:11:16 +0200
commitee669ee5c57851ade034beca7cfaf81825c4c21b (patch)
tree892039ef8d5b90d11bc785ee56ae15304a3127c2 /embassy-stm32-wpan
parent4eb820ab6c50a0bd84f22439dab305289b3ba4a1 (diff)
Update nighlty, fix warnings.
Fixes #2599
Diffstat (limited to 'embassy-stm32-wpan')
-rw-r--r--embassy-stm32-wpan/src/lib.rs1
-rw-r--r--embassy-stm32-wpan/src/mac/commands.rs2
2 files changed, 2 insertions, 1 deletions
diff --git a/embassy-stm32-wpan/src/lib.rs b/embassy-stm32-wpan/src/lib.rs
index f9560d235..fb34d4ba0 100644
--- a/embassy-stm32-wpan/src/lib.rs
+++ b/embassy-stm32-wpan/src/lib.rs
@@ -2,6 +2,7 @@
2#![allow(async_fn_in_trait)] 2#![allow(async_fn_in_trait)]
3#![doc = include_str!("../README.md")] 3#![doc = include_str!("../README.md")]
4// #![warn(missing_docs)] 4// #![warn(missing_docs)]
5#![allow(static_mut_refs)] // TODO: Fix
5 6
6// This must go FIRST so that all the other modules see its macros. 7// This must go FIRST so that all the other modules see its macros.
7mod fmt; 8mod fmt;
diff --git a/embassy-stm32-wpan/src/mac/commands.rs b/embassy-stm32-wpan/src/mac/commands.rs
index c97c609c3..82b9d2772 100644
--- a/embassy-stm32-wpan/src/mac/commands.rs
+++ b/embassy-stm32-wpan/src/mac/commands.rs
@@ -371,7 +371,7 @@ pub struct DataRequest {
371} 371}
372 372
373impl DataRequest { 373impl DataRequest {
374 pub fn set_buffer<'a>(&'a mut self, buf: &'a [u8]) -> &mut Self { 374 pub fn set_buffer<'a>(&'a mut self, buf: &'a [u8]) -> &'a mut Self {
375 self.msdu_ptr = buf as *const _ as *const u8; 375 self.msdu_ptr = buf as *const _ as *const u8;
376 self.msdu_length = buf.len() as u8; 376 self.msdu_length = buf.len() as u8;
377 377