From 8b655f36b868cb023dcdd1ff712de80a59ccbdb1 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 6 Apr 2020 21:42:35 -0400 Subject: clippy --- src/dirs.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dirs.rs') 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() -- cgit v1.2.3-54-g00ecf