From f0f3bedfb50b796e4338ef83067acf590ee373e0 Mon Sep 17 00:00:00 2001 From: dal Date: Thu, 20 Mar 2025 16:35:54 -0600 Subject: [PATCH] bin warning cleanups --- api/src/routes/rest/routes/collections/create_collection.rs | 3 +-- api/src/routes/rest/routes/collections/sharing/list_sharing.rs | 2 +- api/src/routes/rest/routes/dashboards/delete_dashboard.rs | 1 - api/src/routes/rest/routes/data_sources/list_data_sources.rs | 2 +- api/src/routes/rest/routes/messages/update_message.rs | 2 +- api/src/routes/rest/routes/metrics/sharing/delete_sharing.rs | 1 - api/src/routes/rest/routes/metrics/sharing/list_sharing.rs | 2 +- 7 files changed, 5 insertions(+), 8 deletions(-) diff --git a/api/src/routes/rest/routes/collections/create_collection.rs b/api/src/routes/rest/routes/collections/create_collection.rs index 204c8ff6c..fe6f18c5a 100644 --- a/api/src/routes/rest/routes/collections/create_collection.rs +++ b/api/src/routes/rest/routes/collections/create_collection.rs @@ -1,7 +1,6 @@ -use axum::{extract::State, http::StatusCode, Extension, Json}; +use axum::{http::StatusCode, Extension, Json}; use handlers::collections::{create_collection_handler, CollectionState, CreateCollectionRequest}; use middleware::AuthenticatedUser; -use uuid::Uuid; /// Create a new collection /// diff --git a/api/src/routes/rest/routes/collections/sharing/list_sharing.rs b/api/src/routes/rest/routes/collections/sharing/list_sharing.rs index 58aae0275..f0bce5fc9 100644 --- a/api/src/routes/rest/routes/collections/sharing/list_sharing.rs +++ b/api/src/routes/rest/routes/collections/sharing/list_sharing.rs @@ -5,7 +5,7 @@ use axum::{ }; use handlers::collections::sharing::list_collection_sharing_handler; use middleware::AuthenticatedUser; -use serde::{Deserialize, Serialize}; +use serde::Serialize; use uuid::Uuid; use crate::routes::rest::ApiResponse; diff --git a/api/src/routes/rest/routes/dashboards/delete_dashboard.rs b/api/src/routes/rest/routes/dashboards/delete_dashboard.rs index 8f40f7eca..b4b5d4433 100644 --- a/api/src/routes/rest/routes/dashboards/delete_dashboard.rs +++ b/api/src/routes/rest/routes/dashboards/delete_dashboard.rs @@ -10,7 +10,6 @@ use handlers::dashboards::{ use middleware::AuthenticatedUser; use axum::http::StatusCode; -use crate::routes::rest::ApiResponse; pub async fn delete_dashboards_rest_handler( Extension(user): Extension, diff --git a/api/src/routes/rest/routes/data_sources/list_data_sources.rs b/api/src/routes/rest/routes/data_sources/list_data_sources.rs index d8b2ccf93..20d8aa7bf 100644 --- a/api/src/routes/rest/routes/data_sources/list_data_sources.rs +++ b/api/src/routes/rest/routes/data_sources/list_data_sources.rs @@ -3,7 +3,7 @@ use axum::{extract::Query, Extension}; use middleware::AuthenticatedUser; use serde::Deserialize; -use handlers::data_sources::{list_data_sources_handler, DataSourceListItem, ListDataSourcesRequest}; +use handlers::data_sources::{list_data_sources_handler, DataSourceListItem}; use crate::routes::rest::ApiResponse; diff --git a/api/src/routes/rest/routes/messages/update_message.rs b/api/src/routes/rest/routes/messages/update_message.rs index ac52cbf1c..53aa382f4 100644 --- a/api/src/routes/rest/routes/messages/update_message.rs +++ b/api/src/routes/rest/routes/messages/update_message.rs @@ -5,7 +5,7 @@ use axum::{ }; use handlers::messages::update_message_handler; use middleware::AuthenticatedUser; -use serde::{Deserialize, Serialize}; +use serde::Deserialize; use uuid::Uuid; use crate::routes::rest::ApiResponse; diff --git a/api/src/routes/rest/routes/metrics/sharing/delete_sharing.rs b/api/src/routes/rest/routes/metrics/sharing/delete_sharing.rs index dbda55ed8..55a73e6e2 100644 --- a/api/src/routes/rest/routes/metrics/sharing/delete_sharing.rs +++ b/api/src/routes/rest/routes/metrics/sharing/delete_sharing.rs @@ -5,7 +5,6 @@ use axum::{ }; use handlers::metrics::sharing::delete_metric_sharing_handler; use middleware::AuthenticatedUser; -use serde::{Deserialize, Serialize}; use uuid::Uuid; use crate::routes::rest::ApiResponse; diff --git a/api/src/routes/rest/routes/metrics/sharing/list_sharing.rs b/api/src/routes/rest/routes/metrics/sharing/list_sharing.rs index a232cb640..c091ed606 100644 --- a/api/src/routes/rest/routes/metrics/sharing/list_sharing.rs +++ b/api/src/routes/rest/routes/metrics/sharing/list_sharing.rs @@ -1,7 +1,7 @@ use axum::{extract::Path, http::StatusCode, Extension}; use handlers::metrics::sharing::list_metric_sharing_handler; use middleware::AuthenticatedUser; -use serde::{Deserialize, Serialize}; +use serde::Serialize; use uuid::Uuid; use crate::routes::rest::ApiResponse;