refactor: Ran cargo clippy & cargo fmt

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2024-11-10 13:21:37 +11:00
parent 1aa52c0a21
commit 4983b25702
4 changed files with 10 additions and 7 deletions

View File

@ -2,7 +2,7 @@ use std::{
collections::HashMap,
fs::{self, create_dir_all},
path::PathBuf,
sync::{LazyLock, Mutex, RwLock},
sync::{LazyLock, Mutex},
};
use directories::BaseDirs;
@ -11,8 +11,6 @@ use rustbreak::{deser::Bincode, PathDatabase};
use serde::{Deserialize, Serialize};
use url::Url;
use crate::{AppState, DB};
#[derive(serde::Serialize, Clone, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DatabaseAuth {
@ -97,4 +95,4 @@ pub fn change_root_directory(new_dir: String) {
info!("Changed root directory to {}", new_dir);
let mut lock = DATA_ROOT_DIR.lock().unwrap();
*lock = new_dir.into();
}
}