diff --git a/src/lib.rs b/src/lib.rs index 7eac05c..0f2e7f8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -104,7 +104,7 @@ fn append_date_and_git_hash(output_path: &mut Option, config: &Config) if config.append_git_hash { for dir in &config.directory { - match Repository::open(&dir) { + match Repository::open(dir) { Ok(repo) => { let head = repo.head().context("Failed to get repository HEAD")?; if let Some(oid) = head.target() {