From 7d7edfe9ddf2f2a62853a62b73263fbe8b4c2423 Mon Sep 17 00:00:00 2001 From: jeffgrunewald Date: Mon, 10 Apr 2023 15:33:24 -0400 Subject: [PATCH] final format and clippy check after rebase --- iot_config/src/admin_service.rs | 2 +- iot_config/src/gateway_service.rs | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/iot_config/src/admin_service.rs b/iot_config/src/admin_service.rs index de1a5870a..1e970ec66 100644 --- a/iot_config/src/admin_service.rs +++ b/iot_config/src/admin_service.rs @@ -13,7 +13,7 @@ use helium_proto::{ self, AdminAddKeyReqV1, AdminKeyResV1, AdminLoadRegionReqV1, AdminLoadRegionResV1, AdminRemoveKeyReqV1, RegionParamsReqV1, RegionParamsResV1, }, - Message, + Message, Region, }; use sqlx::{Pool, Postgres}; use tokio::sync::watch; diff --git a/iot_config/src/gateway_service.rs b/iot_config/src/gateway_service.rs index 88e9147ea..c0198ab89 100644 --- a/iot_config/src/gateway_service.rs +++ b/iot_config/src/gateway_service.rs @@ -87,17 +87,19 @@ impl iot_config::Gateway for GatewayService { .map_err(|_| Status::internal("error fetching gateway info")) .and_then(|opt| { opt.ok_or_else(|| { - Status::not_found(format!("gateway not found: pubkey = {}", address.to_string())) + Status::not_found(format!("gateway not found: pubkey = {address}")) }) }) .and_then(|iot_metadata| { iot_metadata.location.ok_or_else(|| { - Status::not_found(format!("gateway unasserted: pubkey = {}", address.to_string())) + Status::not_found(format!("gateway unasserted: pubkey = {address}")) }) }) .and_then(|location| { Cell::from_raw(location).map_err(|_| { - Status::internal(format!("invalid h3 index location {location} for {}", address.to_string())) + Status::internal(format!( + "invalid h3 index location {location} for {address}" + )) }) }) .map(|cell| cell.to_string())?;