Formatting
This commit is contained in:
1 parent
dddac01bdf
commit
10cf7f0d2e
29 files changed
+138
-138
No files matched your search
@@ -1,7 +1,7 @@
|
||||
use std::fs;
|
||||
use std::path::PathBuf;
|
||||
use crate::notification::NotificationData;
|
||||
use crate::notification::NotificationData::PermissionDenied;
|
||||
use std::fs;
|
||||
use std::path::PathBuf;
|
||||
|
||||
pub fn app_data_dir() -> PathBuf {
|
||||
let mut dir = dirs::data_dir().expect("Unsupported OS");
|
||||
@@ -14,10 +14,10 @@ pub fn app_data_dir() -> PathBuf {
|
||||
}
|
||||
|
||||
pub fn db_path() -> PathBuf {
|
||||
app_data_dir().join("data.db")
|
||||
app_data_dir().join("data.db")
|
||||
}
|
||||
pub fn temp_db_path() -> PathBuf {
|
||||
app_data_dir().join("data.db.tmp")
|
||||
app_data_dir().join("data.db.tmp")
|
||||
}
|
||||
|
||||
pub fn temp_import_path() -> PathBuf {
|
||||
@@ -42,4 +42,4 @@ pub fn voice_dir() -> Result<PathBuf, NotificationData> {
|
||||
fs::create_dir_all(directory.clone()).map_err(|_| PermissionDenied)?;
|
||||
}
|
||||
Ok(directory)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user