Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rustfmt
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6475e444712a7e82b4032f999bb8e26e1a40abdd
Choose a base ref
..
head repository: rust-lang/rustfmt
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a3716527a2517541e9161933e8597bdc7ec88005
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/vertical.rs
2 changes: 1 addition & 1 deletion src/vertical.rs
Original file line number Diff line number Diff line change
@@ -342,7 +342,7 @@ fn group_aligned_items<T: AlignedItem>(
fields: &[T],
) -> (&'static str, usize) {
let mut index = 0;
for i in 0..fields.len().saturating_sub(1) {
for i in 0..fields.len() - 1 {
if fields[i].skip() {
return ("", index);
}