Skip to content

Commit

Permalink
Resolve warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hatchan committed Sep 26, 2024
1 parent 41346a2 commit 6f970c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions fpx-app/src/api_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(());
}

Expand Down
2 changes: 1 addition & 1 deletion fpx/src/api/handlers/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6f970c3

Please sign in to comment.