From d01d2ef3e4cfab8db182aca739c6c9101f659728 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Sat, 20 Sep 2025 12:01:22 +0200 Subject: [PATCH] fix: simplify repository opening logic in append_date_and_git_hash function --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {