Fix multiple issues pointed out by the new compiler

This commit is contained in:
Zhang Junyang
2024-10-13 21:39:47 +08:00
committed by Tate, Hongliang Tian
parent 5f2bd9d0ac
commit 9e4257b655
62 changed files with 211 additions and 178 deletions

View File

@ -48,7 +48,7 @@ impl device::RxToken for RxToken {
pub struct TxToken<'a>(&'a mut dyn AnyNetworkDevice);
impl<'a> device::TxToken for TxToken<'a> {
impl device::TxToken for TxToken<'_> {
fn consume<R, F>(self, len: usize, f: F) -> R
where
F: FnOnce(&mut [u8]) -> R,