Skip to content

Commit

Permalink
Upgrade smoltcp to 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tlevora committed Nov 28, 2024
1 parent 5166da8 commit 4bd4959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ethernet/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ pub struct RxToken<'a, const RD: usize>(&'a mut RDesRing<RD>);
impl<'a, const RD: usize> phy::RxToken for RxToken<'a, RD> {
fn consume<R, F>(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();
Expand Down

0 comments on commit 4bd4959

Please sign in to comment.