Skip to content

Commit 1fa2684

Browse files
Fix formatting: break long line in changes.rs
The line calling trees.extend() exceeded the line length limit. Reformatted to split across multiple lines for better readability. Co-authored-by: Christian Schilling <christian-schilling@users.noreply.github.com>
1 parent 1ba8832 commit 1fa2684

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

josh-core/src/changes.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ fn split_changes(
5555
.collect::<Result<Vec<_>, _>>()?;
5656

5757
let mut trees = vec![repo.find_commit(base)?.tree()?];
58-
trees.extend(commits.iter().map(|commit| commit.tree()).collect::<Result<Vec<_>, _>>()?);
58+
trees.extend(
59+
commits
60+
.iter()
61+
.map(|commit| commit.tree())
62+
.collect::<Result<Vec<_>, _>>()?,
63+
);
5964

6065
let diffs: Vec<git2::Diff> = trees
6166
.windows(2)

0 commit comments

Comments
 (0)