Skip to content

Commit f03cc37

Browse files
runningcodeclaude
andcommitted
style: apply rust formatting
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 05621c1 commit f03cc37

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/utils/vcs.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,11 @@ fn extract_pr_head_sha_from_event(json_content: &str) -> Option<String> {
571571
for (i, line) in lines.iter().enumerate() {
572572
if line.contains("\"head\":") {
573573
// Look for "sha" in the next few lines after finding "head"
574-
for line in lines.iter().take(std::cmp::min(i + 10, lines.len())).skip(i) {
574+
for line in lines
575+
.iter()
576+
.take(std::cmp::min(i + 10, lines.len()))
577+
.skip(i)
578+
{
575579
if let Some(sha) = extract_sha_from_line(line) {
576580
return Some(sha);
577581
}

0 commit comments

Comments
 (0)