From 45ba6d11dcf00500ac5fb575ac4e23da4112463d Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Fri, 16 Apr 2021 14:22:09 +0200 Subject: [PATCH] fix typo --- src/helpers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers.rs b/src/helpers.rs index 0ca8a2b..f985a9b 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -100,7 +100,7 @@ pub fn git_dir() -> Result> { /// Returns a `PathBuf` to the cache root for this project /// /// This will be either the appropriate cache dir according to XDG or as a fallback `/tmp`. -pub fn chache_root() -> PathBuf { +pub fn cache_root() -> PathBuf { match ProjectDirs::from("org", "webschneider", env!("CARGO_PKG_NAME")) { Some(dirs) => PathBuf::from(dirs.cache_dir()), None => "/tmp".into(), @@ -109,7 +109,7 @@ pub fn chache_root() -> PathBuf { /// Returns a default file cache pub fn default_cache() -> Result { - let cache_root = crate::helpers::chache_root(); + let cache_root = crate::helpers::cache_root(); FileCache::new(&cache_root, std::time::Duration::from_secs(60 * 24 * 2)) }