mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
Update component.rs
This commit is contained in:
parent
05a1ea403f
commit
c9d00908ec
1 changed files with 1 additions and 1 deletions
|
@ -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}")?;
|
||||
|
|
Loading…
Reference in a new issue