aboutsummaryrefslogtreecommitdiff
path: root/examples/std/src/bin/net.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-08-07 13:01:33 +0000
committerGitHub <[email protected]>2024-08-07 13:01:33 +0000
commit891c5ee10584cd990dad529e3506fe1328e4e69d (patch)
tree314e49359b9730fec7bd2ed62ee10a2b954bac5c /examples/std/src/bin/net.rs
parentd3ff0b184861fecf7d11e14bb90a39711e10176d (diff)
parent59cb1531c91386cec8d7b209630b6b4d9eb7fd7c (diff)
Merge pull request #3232 from embassy-rs/misc-fixes-44
Misc fixes.
Diffstat (limited to 'examples/std/src/bin/net.rs')
-rw-r--r--examples/std/src/bin/net.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/std/src/bin/net.rs b/examples/std/src/bin/net.rs
index 59813d8cb..310e7264d 100644
--- a/examples/std/src/bin/net.rs
+++ b/examples/std/src/bin/net.rs
@@ -52,12 +52,7 @@ async fn main_task(spawner: Spawner) {
52 // Init network stack 52 // Init network stack
53 static STACK: StaticCell<Stack<TunTapDevice>> = StaticCell::new(); 53 static STACK: StaticCell<Stack<TunTapDevice>> = StaticCell::new();
54 static RESOURCES: StaticCell<StackResources<3>> = StaticCell::new(); 54 static RESOURCES: StaticCell<StackResources<3>> = StaticCell::new();
55 let stack = &*STACK.init(Stack::new( 55 let stack = &*STACK.init(Stack::new(device, config, RESOURCES.init(StackResources::new()), seed));
56 device,
57 config,
58 RESOURCES.init(StackResources::<3>::new()),
59 seed,
60 ));
61 56
62 // Launch network task 57 // Launch network task
63 spawner.spawn(net_task(stack)).unwrap(); 58 spawner.spawn(net_task(stack)).unwrap();