mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-15 01:01:25 +10:00
refactor: Ran cargo clippy & cargo fmt
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user