Fix needless borrow lint

This commit is contained in:
Valentin Brandl 2022-11-05 12:17:40 +01:00
parent 502dda0b6e
commit 7aec5d5045

View File

@ -118,7 +118,7 @@ fn hoc(repo: &str, repo_dir: &str, cache_dir: &str, branch: &str) -> Result<(u64
"-M".to_string(), "-M".to_string(),
"--diff-filter=ACDM".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 { match &cache {
CacheState::Current { count, commits, .. } => { CacheState::Current { count, commits, .. } => {
info!("Using cache"); info!("Using cache");