diff --git a/fpx-app/src/api_manager.rs b/fpx-app/src/api_manager.rs index c29dc2ed6..f26d86346 100644 --- a/fpx-app/src/api_manager.rs +++ b/fpx-app/src/api_manager.rs @@ -16,14 +16,10 @@ pub struct ApiManager { } impl ApiManager { - pub fn new() -> Self { - Default::default() - } - - pub fn start_api(&self, fpx_config: FpxConfig) { + pub fn start_api(&self, _fpx_config: FpxConfig) { let mut shutdown_tx = self.shutdown_tx.lock().expect("lock is poisoned"); if let Some(shutdown_tx) = shutdown_tx.take() { - // shutdown any existing api servers + // shutdown any existing api server let _ = shutdown_tx.send(()); } diff --git a/fpx/src/api/handlers/settings.rs b/fpx/src/api/handlers/settings.rs index 28d98e033..f4b3bdcad 100644 --- a/fpx/src/api/handlers/settings.rs +++ b/fpx/src/api/handlers/settings.rs @@ -6,7 +6,7 @@ use axum::Json; use fpx_macros::ApiError; use serde::{Deserialize, Serialize}; use thiserror::Error; -use tracing::{debug, error}; +use tracing::error; #[tracing::instrument(skip_all)] pub async fn settings_get(