From 20ec2877f24aacfeb0582eb53af184cea5359b11 Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Mon, 14 Oct 2024 15:30:15 +0100 Subject: [PATCH] Fix fmt after clippy fixes. --- chirpstack/src/api/internal.rs | 5 +---- chirpstack/src/storage/fields/dev_nonces.rs | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/chirpstack/src/api/internal.rs b/chirpstack/src/api/internal.rs index 9fcb5f2a..aa3b4441 100644 --- a/chirpstack/src/api/internal.rs +++ b/chirpstack/src/api/internal.rs @@ -287,10 +287,7 @@ impl InternalService for Internal { let tenant_id = if req_key.tenant_id.is_empty() { None } else { - Some( - Uuid::from_str(&req_key.tenant_id) - .map_err(|e| e.status())?, - ) + Some(Uuid::from_str(&req_key.tenant_id).map_err(|e| e.status())?) }; if req_key.is_admin && tenant_id.is_some() { diff --git a/chirpstack/src/storage/fields/dev_nonces.rs b/chirpstack/src/storage/fields/dev_nonces.rs index 5b97f511..b4a10f4e 100644 --- a/chirpstack/src/storage/fields/dev_nonces.rs +++ b/chirpstack/src/storage/fields/dev_nonces.rs @@ -22,7 +22,6 @@ pub struct DevNonces(DevNoncesInner); pub type DevNoncesInner = Vec>; - impl std::convert::AsRef for DevNonces { fn as_ref(&self) -> &DevNoncesInner { &self.0