diff options
Diffstat (limited to 'embassy-net/src/stack.rs')
| -rw-r--r-- | embassy-net/src/stack.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/embassy-net/src/stack.rs b/embassy-net/src/stack.rs index f1f92e8ed..8623a7275 100644 --- a/embassy-net/src/stack.rs +++ b/embassy-net/src/stack.rs | |||
| @@ -230,12 +230,13 @@ pub fn is_config_up() -> bool { | |||
| 230 | STACK.borrow().borrow().as_ref().unwrap().config_up | 230 | STACK.borrow().borrow().as_ref().unwrap().config_up |
| 231 | } | 231 | } |
| 232 | 232 | ||
| 233 | pub async fn run() { | 233 | pub async fn run() -> ! { |
| 234 | futures::future::poll_fn(|cx| { | 234 | futures::future::poll_fn(|cx| { |
| 235 | Stack::with(|stack| stack.poll(cx)); | 235 | Stack::with(|stack| stack.poll(cx)); |
| 236 | Poll::<()>::Pending | 236 | Poll::<()>::Pending |
| 237 | }) | 237 | }) |
| 238 | .await | 238 | .await; |
| 239 | unreachable!() | ||
| 239 | } | 240 | } |
| 240 | 241 | ||
| 241 | fn instant_to_smoltcp(instant: Instant) -> SmolInstant { | 242 | fn instant_to_smoltcp(instant: Instant) -> SmolInstant { |
