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 45ea712 commit 833c7e9Copy full SHA for 833c7e9
packages/autofmt/src/writer.rs
@@ -19,7 +19,6 @@ pub struct Writer<'a> {
19
pub invalid_exprs: Vec<Span>,
20
}
21
22
-
23
impl<'a> Writer<'a> {
24
pub fn new(raw_src: &'a str, indent: IndentOptions) -> Self {
25
Self {
@@ -898,7 +897,11 @@ impl<'a> Writer<'a> {
898
897
if !out.is_empty() {
899
out.push('\n');
900
901
- while src_lines.peek().map(|s| s.trim().is_empty()).unwrap_or(false) {
+ while src_lines
+ .peek()
902
+ .map(|s| s.trim().is_empty())
903
+ .unwrap_or(false)
904
+ {
905
src_lines.next();
906
907
continue;
0 commit comments