Skip to content

Commit 95fc3ba

Browse files
committed
fixup
1 parent 5b1cd82 commit 95fc3ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir-def/src/body/pretty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl<'a> Printer<'a> {
113113
}
114114

115115
fn newline(&mut self) {
116-
match self.buf.chars().rev().skip_while(|ch| *ch == ' ').next() {
116+
match self.buf.chars().rev().find(|ch| *ch != ' ') {
117117
Some('\n') | None => {}
118118
_ => writeln!(self).unwrap(),
119119
}

0 commit comments

Comments
 (0)