Skip to content

Commit 833c7e9

Browse files
committed
adjust test case
1 parent 45ea712 commit 833c7e9

File tree

3 files changed

+245
-242
lines changed

3 files changed

+245
-242
lines changed

packages/autofmt/src/writer.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub struct Writer<'a> {
1919
pub invalid_exprs: Vec<Span>,
2020
}
2121

22-
2322
impl<'a> Writer<'a> {
2423
pub fn new(raw_src: &'a str, indent: IndentOptions) -> Self {
2524
Self {
@@ -898,7 +897,11 @@ impl<'a> Writer<'a> {
898897
if !out.is_empty() {
899898
out.push('\n');
900899
}
901-
while src_lines.peek().map(|s| s.trim().is_empty()).unwrap_or(false) {
900+
while src_lines
901+
.peek()
902+
.map(|s| s.trim().is_empty())
903+
.unwrap_or(false)
904+
{
902905
src_lines.next();
903906
}
904907
continue;

0 commit comments

Comments
 (0)