diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-04-06 21:42:35 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-04-06 21:42:35 -0400 |
commit | 8b655f36b868cb023dcdd1ff712de80a59ccbdb1 (patch) | |
tree | dce0912bb14147346ee0fa35f1b971f6364a51bc /src/dirs.rs | |
parent | ca02ec8ca2b24ae7997de80b662cfd3635d75e9e (diff) | |
download | rbw-8b655f36b868cb023dcdd1ff712de80a59ccbdb1.tar.gz rbw-8b655f36b868cb023dcdd1ff712de80a59ccbdb1.zip |
clippy
Diffstat (limited to 'src/dirs.rs')
-rw-r--r-- | src/dirs.rs | 3 |
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() |