Fix clippy warnings.

This commit is contained in:
Orne Brocaar 2022-09-27 11:02:55 +01:00
parent 709731ab6e
commit e81e57a020

View File

@ -112,7 +112,7 @@ async fn main() -> Result<()> {
if let Some(v) = matches.subcommand_matches("print-ds") {
let dev_eui = v.get_one::<String>("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::<String>("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);