From 4bd4959c4d491f508a5570fd5f56c67a43719cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Levora?= Date: Thu, 28 Nov 2024 22:06:25 +0100 Subject: [PATCH] Upgrade smoltcp to 0.12.0 --- Cargo.toml | 2 +- src/ethernet/eth.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dcef60b5..667afa8f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,7 @@ fdcan = { version = "0.2", optional = true } embedded-storage = "0.3" [dependencies.smoltcp] -version = "0.11.0" +version = "0.12.0" default-features = false features = ["medium-ethernet", "proto-ipv4", "socket-raw"] optional = true diff --git a/src/ethernet/eth.rs b/src/ethernet/eth.rs index b825595b..5177a3fd 100644 --- a/src/ethernet/eth.rs +++ b/src/ethernet/eth.rs @@ -816,7 +816,7 @@ pub struct RxToken<'a, const RD: usize>(&'a mut RDesRing); impl<'a, const RD: usize> phy::RxToken for RxToken<'a, RD> { fn consume(self, f: F) -> R where - F: FnOnce(&mut [u8]) -> R, + F: FnOnce(&[u8]) -> R, { let result = f(unsafe { self.0.buf_as_slice_mut() }); self.0.release();