aboutsummaryrefslogtreecommitdiff
path: root/examples/std/src/bin/net.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-10-17 23:19:45 +0000
committerGitHub <[email protected]>2021-10-17 23:19:45 +0000
commit90f6b56cba8123d51631aec2ceea7262eee149c5 (patch)
tree9aec97c4bd61f26f49eeb0e739caabd1c12b0548 /examples/std/src/bin/net.rs
parentd81a203ee264c8bb77eaae18944d4cace7b1683c (diff)
parentf5e251fc8176000a9156e29b25e3a5f18229acc0 (diff)
Merge #434
434: Clippy fixes r=Dirbaio a=Dirbaio Fixes most clippy lints. Added `#![allow(clippy::new_without_default)]` because I really, really don't agree with `new()` being the same as `default()`... Co-authored-by: Dario Nieuwenhuis <[email protected]>
Diffstat (limited to 'examples/std/src/bin/net.rs')
-rw-r--r--examples/std/src/bin/net.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/std/src/bin/net.rs b/examples/std/src/bin/net.rs
index c44f1c5b0..8abcc586f 100644
--- a/examples/std/src/bin/net.rs
+++ b/examples/std/src/bin/net.rs
@@ -1,6 +1,6 @@
1#![feature(type_alias_impl_trait)] 1#![feature(type_alias_impl_trait)]
2 2
3use clap::{AppSettings, Clap}; 3use clap::Parser;
4use embassy::executor::{Executor, Spawner}; 4use embassy::executor::{Executor, Spawner};
5use embassy::io::AsyncWriteExt; 5use embassy::io::AsyncWriteExt;
6use embassy::util::Forever; 6use embassy::util::Forever;
@@ -18,9 +18,8 @@ static CONFIG_STATIC: Forever<StaticConfigurator> = Forever::new();
18static CONFIG_DYNAMIC: Forever<DhcpConfigurator> = Forever::new(); 18static CONFIG_DYNAMIC: Forever<DhcpConfigurator> = Forever::new();
19static NET_RESOURCES: Forever<StackResources<1, 2, 8>> = Forever::new(); 19static NET_RESOURCES: Forever<StackResources<1, 2, 8>> = Forever::new();
20 20
21#[derive(Clap)] 21#[derive(Parser)]
22#[clap(version = "1.0")] 22#[clap(version = "1.0")]
23#[clap(setting = AppSettings::ColoredHelp)]
24struct Opts { 23struct Opts {
25 /// TAP device name 24 /// TAP device name
26 #[clap(long, default_value = "tap0")] 25 #[clap(long, default_value = "tap0")]