diff options
| author | xoviat <[email protected]> | 2025-12-12 01:16:27 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-12 01:16:27 +0000 |
| commit | b5a671e12c798b6d29fdf7177468a73d08e4b995 (patch) | |
| tree | f6dedf433c8b13cc13dcca75f0c2ff1623908fce /examples/std/src | |
| parent | d6b53497bd51b1ab220b4749f3e97a51a385bce4 (diff) | |
| parent | d7c7a5e76602e495d65da49f0f8eea80e3cc3fc2 (diff) | |
Merge pull request #5042 from embassy-rs/update-rust-asdf
Update Rust, nightly, xtensa.
Diffstat (limited to 'examples/std/src')
| -rw-r--r-- | examples/std/src/bin/net_ppp.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/std/src/bin/net_ppp.rs b/examples/std/src/bin/net_ppp.rs index 82272c798..685dbf3d3 100644 --- a/examples/std/src/bin/net_ppp.rs +++ b/examples/std/src/bin/net_ppp.rs | |||
| @@ -52,7 +52,7 @@ async fn ppp_task(stack: Stack<'static>, mut runner: Runner<'static>, port: Seri | |||
| 52 | password: b"mypass", | 52 | password: b"mypass", |
| 53 | }; | 53 | }; |
| 54 | 54 | ||
| 55 | runner | 55 | let r = runner |
| 56 | .run(port, config, |ipv4| { | 56 | .run(port, config, |ipv4| { |
| 57 | let Some(addr) = ipv4.address else { | 57 | let Some(addr) = ipv4.address else { |
| 58 | warn!("PPP did not provide an IP address."); | 58 | warn!("PPP did not provide an IP address."); |
| @@ -69,9 +69,10 @@ async fn ppp_task(stack: Stack<'static>, mut runner: Runner<'static>, port: Seri | |||
| 69 | }); | 69 | }); |
| 70 | stack.set_config_v4(config); | 70 | stack.set_config_v4(config); |
| 71 | }) | 71 | }) |
| 72 | .await | 72 | .await; |
| 73 | .unwrap(); | 73 | match r { |
| 74 | unreachable!() | 74 | Err(e) => panic!("{:?}", e), |
| 75 | } | ||
| 75 | } | 76 | } |
| 76 | 77 | ||
| 77 | #[embassy_executor::task] | 78 | #[embassy_executor::task] |
