Update smoltcp
This commit is contained in:
+6
-1
@@ -29,7 +29,12 @@ features = ["release_max_level_warn"]
|
||||
[dependencies.smoltcp]
|
||||
path = "smoltcp"
|
||||
default-features = false
|
||||
features = ["std", "socket-raw", "proto-ipv4", "socket-udp", "socket-tcp", "socket-icmp"]
|
||||
features = [
|
||||
"std",
|
||||
"ethernet",
|
||||
"proto-ipv4",
|
||||
"socket-raw", "socket-icmp", "socket-udp", "socket-tcp"
|
||||
]
|
||||
#For debugging: "log", "verbose"
|
||||
|
||||
[profile.release]
|
||||
|
||||
+1
-1
Submodule smoltcp updated: 30793fc901...9eae8d296b
@@ -45,11 +45,11 @@ pub struct RxToken {
|
||||
}
|
||||
|
||||
impl smoltcp::phy::RxToken for RxToken {
|
||||
fn consume<R, F>(self, _timestamp: Instant, f: F) -> smoltcp::Result<R>
|
||||
fn consume<R, F>(mut self, _timestamp: Instant, f: F) -> smoltcp::Result<R>
|
||||
where
|
||||
F: FnOnce(&[u8]) -> smoltcp::Result<R>,
|
||||
F: FnOnce(&mut [u8]) -> smoltcp::Result<R>,
|
||||
{
|
||||
f(&self.buffer)
|
||||
f(&mut self.buffer)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user