Update smoltcp

This commit is contained in:
Jeremy Soller
2019-11-29 18:54:09 -07:00
parent ac5da3935b
commit 01f30577c1
3 changed files with 10 additions and 5 deletions
+6 -1
View File
@@ -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
+3 -3
View File
@@ -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)
}
}