aboutsummaryrefslogtreecommitdiffstats
path: root/src/dirs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirs.rs')
-rw-r--r--src/dirs.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dirs.rs b/src/dirs.rs
index 177ea58..3eb5804 100644
--- a/src/dirs.rs
+++ b/src/dirs.rs
@@ -1,13 +1,16 @@
+#[must_use]
pub fn config_dir() -> std::path::PathBuf {
let project_dirs = directories::ProjectDirs::from("", "", "rbw").unwrap();
project_dirs.config_dir().to_path_buf()
}
+#[must_use]
pub fn cache_dir() -> std::path::PathBuf {
let project_dirs = directories::ProjectDirs::from("", "", "rbw").unwrap();
project_dirs.cache_dir().to_path_buf()
}
+#[must_use]
pub fn runtime_dir() -> std::path::PathBuf {
let project_dirs = directories::ProjectDirs::from("", "", "rbw").unwrap();
project_dirs.runtime_dir().unwrap().to_path_buf()