From e81e57a020743f1b9084a6889a1bc81b97d4ced2 Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Tue, 27 Sep 2022 11:02:55 +0100 Subject: [PATCH] Fix clippy warnings. --- chirpstack/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chirpstack/src/main.rs b/chirpstack/src/main.rs index 483935f9..9a9794dd 100644 --- a/chirpstack/src/main.rs +++ b/chirpstack/src/main.rs @@ -112,7 +112,7 @@ async fn main() -> Result<()> { if let Some(v) = matches.subcommand_matches("print-ds") { let dev_eui = v.get_one::("dev-eui").unwrap(); - let dev_eui = EUI64::from_str(&dev_eui).unwrap(); + let dev_eui = EUI64::from_str(dev_eui).unwrap(); cmd::print_ds::run(&dev_eui).await.unwrap(); process::exit(0); @@ -120,7 +120,7 @@ async fn main() -> Result<()> { if let Some(v) = matches.subcommand_matches("import-ttn-lorawan-devices") { let dir = v.get_one::("dir").unwrap(); - cmd::import_ttn_lorawan_devices::run(Path::new(&*dir)) + cmd::import_ttn_lorawan_devices::run(Path::new(dir)) .await .unwrap(); process::exit(0);