From 7aec5d5045d41e0659c480e9b467d5cafc72d4f7 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 5 Nov 2022 12:17:40 +0100 Subject: [PATCH] Fix needless borrow lint --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 47c8409..bf4fca8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -118,7 +118,7 @@ fn hoc(repo: &str, repo_dir: &str, cache_dir: &str, branch: &str) -> Result<(u64 "-M".to_string(), "--diff-filter=ACDM".to_string(), ]; - let cache = CacheState::read_from_file(&cache_dir, branch, &head)?; + let cache = CacheState::read_from_file(cache_dir, branch, &head)?; match &cache { CacheState::Current { count, commits, .. } => { info!("Using cache");