I'm using a precommit hook which ensures that files are formatted with rustfmt $filepath. On travis, cargo fmt --all -- --check fails. The difference seems to be methods following a close parenthesis in a long chain (i.e. with linebreaks). Do they use different configurations by default? Is this related to the stable/nightly versions of rustfmt?
Diff in /home/travis/build/clbarnes/arbor-rs/src/arbor.rs at line 502:
.map(|(dist, _prox)| {
self.edges.remove(&dist);
dist
- })
- .collect()
+ }).collect()
}
See e.g. https://travis-ci.org/clbarnes/arbor-rs/jobs/456062812
I'm using a precommit hook which ensures that files are formatted with
rustfmt $filepath
. On travis,cargo fmt --all -- --check
fails. The difference seems to be methods following a close parenthesis in a long chain (i.e. with linebreaks). Do they use different configurations by default? Is this related to the stable/nightly versions of rustfmt?