diff options
Diffstat (limited to 'examples/std/src/bin/net_dns.rs')
| -rw-r--r-- | examples/std/src/bin/net_dns.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/std/src/bin/net_dns.rs b/examples/std/src/bin/net_dns.rs index 3b6a3de37..c9615ef35 100644 --- a/examples/std/src/bin/net_dns.rs +++ b/examples/std/src/bin/net_dns.rs | |||
| @@ -51,12 +51,7 @@ async fn main_task(spawner: Spawner) { | |||
| 51 | // Init network stack | 51 | // Init network stack |
| 52 | static STACK: StaticCell<Stack<TunTapDevice>> = StaticCell::new(); | 52 | static STACK: StaticCell<Stack<TunTapDevice>> = StaticCell::new(); |
| 53 | static RESOURCES: StaticCell<StackResources<3>> = StaticCell::new(); | 53 | static RESOURCES: StaticCell<StackResources<3>> = StaticCell::new(); |
| 54 | let stack: &Stack<_> = &*STACK.init(Stack::new( | 54 | let stack: &Stack<_> = &*STACK.init(Stack::new(device, config, RESOURCES.init(StackResources::new()), seed)); |
| 55 | device, | ||
| 56 | config, | ||
| 57 | RESOURCES.init(StackResources::<3>::new()), | ||
| 58 | seed, | ||
| 59 | )); | ||
| 60 | 55 | ||
| 61 | // Launch network task | 56 | // Launch network task |
| 62 | spawner.spawn(net_task(stack)).unwrap(); | 57 | spawner.spawn(net_task(stack)).unwrap(); |
