mirror of
https://github.com/arampoire/onetun.git
synced 2026-01-16 12:00:24 -05:00
chore: udpate to smoltcp 0.12
This commit is contained in:
parent
ca3590a4c0
commit
0e93a6435a
6 changed files with 13 additions and 11 deletions
|
|
@ -109,11 +109,11 @@ pub struct RxToken {
|
|||
}
|
||||
|
||||
impl smoltcp::phy::RxToken for RxToken {
|
||||
fn consume<R, F>(mut self, f: F) -> R
|
||||
fn consume<R, F>(self, f: F) -> R
|
||||
where
|
||||
F: FnOnce(&mut [u8]) -> R,
|
||||
F: FnOnce(&[u8]) -> R,
|
||||
{
|
||||
f(&mut self.buffer)
|
||||
f(&self.buffer)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue