Browse Source

Update component.rs

ealmloff 1 năm trước cách đây
mục cha
commit
c9d00908ec
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/autofmt/src/component.rs

+ 1 - 1
packages/autofmt/src/component.rs

@@ -176,7 +176,7 @@ impl Writer<'_> {
                     )?;
                 }
                 ContentField::OnHandlerRaw(exp) => {
-                    let out = prettyplease::unparse(exp);
+                    let out = prettyplease::unparse_expr(exp);
                     let mut lines = out.split('\n').peekable();
                     let first = lines.next().unwrap();
                     write!(self.out, "{name}: {first}")?;