We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79f4dec commit 64901feCopy full SHA for 64901fe
src/visitor.rs
@@ -163,13 +163,15 @@ impl<'a> FmtVisitor<'a> {
163
164
let snippet =
165
self.snippet(mk_sp(self.last_pos, attr_lo.unwrap_or(first_stmt.span.lo)));
166
- let len = CommentCodeSlices::new(&snippet).nth(0).and_then(
167
- |(kind, _, s)| if kind == CodeCharKind::Normal {
168
- s.rfind('\n')
169
- } else {
170
- None
171
- },
172
- );
+ let len = CommentCodeSlices::new(&snippet)
+ .nth(0)
+ .and_then(|(kind, _, s)| {
+ if kind == CodeCharKind::Normal {
+ s.rfind('\n')
+ } else {
+ None
173
+ }
174
+ });
175
if let Some(len) = len {
176
self.last_pos = self.last_pos + BytePos::from_usize(len);
177
}
0 commit comments