aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan McIntyre <me@mciantyre.dev>2025-07-17 21:40:57 -0400
committerIan McIntyre <me@mciantyre.dev>2025-07-17 21:40:57 -0400
commit8399ce2522887369677b7e0a4e52922d63221967 (patch)
tree8e7430fa1da5e4b4a643c4d2c25ec47652f6e6f3
parentf3ae75ebd3410c83c5ad4d8b874061d25be95043 (diff)
Bump smoltcp to 0.12HEADmain
-rw-r--r--Cargo.toml2
-rw-r--r--src/bd.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index f031df4..2904ca7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,7 +10,7 @@ mdio = "0.1"
defmt = "0.3"
[dependencies.smoltcp]
-version = "0.10"
+version = "0.12"
default-features = false
features = [
"medium-ethernet",
diff --git a/src/bd.rs b/src/bd.rs
index 1afb93b..496f32a 100644
--- a/src/bd.rs
+++ b/src/bd.rs
@@ -236,7 +236,7 @@ impl smoltcp::phy::TxToken for TxToken<'_> {
impl smoltcp::phy::RxToken for RxToken<'_> {
fn consume<R, F>(self, f: F) -> R
where
- F: FnOnce(&mut [u8]) -> R,
+ F: FnOnce(&[u8]) -> R,
{
// Safety: hardware will not exceed our maximum frame length. We know that
// the pointer is valid; see discussion above.