Update nighlty, fix warnings.

Fixes #2599
This commit is contained in:
Dario Nieuwenhuis
2024-10-14 00:01:49 +02:00
parent 4eb820ab6c
commit ee669ee5c5
11 changed files with 30 additions and 20 deletions

View File

@@ -2,6 +2,7 @@
#![allow(async_fn_in_trait)]
#![doc = include_str!("../README.md")]
// #![warn(missing_docs)]
#![allow(static_mut_refs)] // TODO: Fix
// This must go FIRST so that all the other modules see its macros.
mod fmt;

View File

@@ -371,7 +371,7 @@ pub struct DataRequest {
}
impl DataRequest {
pub fn set_buffer<'a>(&'a mut self, buf: &'a [u8]) -> &mut Self {
pub fn set_buffer<'a>(&'a mut self, buf: &'a [u8]) -> &'a mut Self {
self.msdu_ptr = buf as *const _ as *const u8;
self.msdu_length = buf.len() as u8;