Skip to content

Commit 6830caf

Browse files
runningcodeclaude
andcommitted
style: Apply rustfmt formatting
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3be163e commit 6830caf

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/utils/vcs.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,13 @@ pub fn git_repo_base_ref(repo: &git2::Repository, remote_name: &str) -> Result<O
255255

256256
// Try to find the remote tracking branch
257257
let remote_branch_name = format!("refs/remotes/{remote_name}/HEAD");
258-
let remote_ref = repo
259-
.find_reference(&remote_branch_name)
260-
.map_err(|e| {
261-
anyhow::anyhow!(
262-
"Could not find remote tracking branch for {}: {}",
263-
remote_name,
264-
e
265-
)
266-
})?;
258+
let remote_ref = repo.find_reference(&remote_branch_name).map_err(|e| {
259+
anyhow::anyhow!(
260+
"Could not find remote tracking branch for {}: {}",
261+
remote_name,
262+
e
263+
)
264+
})?;
267265

268266
find_merge_base_ref(repo, &head_commit, &remote_ref)
269267
}

0 commit comments

Comments
 (0)