Update component.rs

This commit is contained in:
ealmloff authored and GitHub committed 2023-07-19 15:00:10 -05:00
1 parent 05a1ea403f
commit c9d00908ec
1 file changed
+1 -1
+1 -1
View File
@@ -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}")?;