// ...
impl<T> Iterator for ListIter<T> {
type Item = T
; // <<< here is the formatted semicolon
fn next(ref mut self) -> Option<Self::Item> {
match self.this {
Next(elt) => {
this = elt;
elt
},
End => None,
}
}
}
Then its formatted to:
// ...
impl<T> Iterator for ListIter<T> {
type Item = T; // Missing the empty line
fn next(ref mut self) -> Option<Self::Item> {
match self.this {
Next(elt) => {
this = elt;
elt
},
End => None,
}
}
}
Thanks for the bug report, I was able to reproduce it. The formatter should never produce different results on the second run, and the semicolon is definitely mis-formatted.
Related Component
forc-fmt
Problem
is formatted to
Then its formatted to:
Steps
Use the file and format it :)
Possible Solution(s)
Not to reformat the given file
Notes
No response
Installed components