mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
make clippy happy
This commit is contained in:
parent
b81eca0433
commit
61b8a25ad8
1 changed files with 2 additions and 2 deletions
|
@ -142,13 +142,13 @@ fn write_body(buf: &mut Writer, body: &CallBody) {
|
|||
// write all the indents with spaces and commas between
|
||||
for idx in 0..body.roots.len() - 1 {
|
||||
let ident = &body.roots[idx];
|
||||
buf.write_ident(&ident).unwrap();
|
||||
buf.write_ident(ident).unwrap();
|
||||
write!(&mut buf.out.buf, ", ").unwrap();
|
||||
}
|
||||
|
||||
// write the last ident without a comma
|
||||
let ident = &body.roots[body.roots.len() - 1];
|
||||
buf.write_ident(&ident).unwrap();
|
||||
buf.write_ident(ident).unwrap();
|
||||
} else {
|
||||
buf.write_body_indented(&body.roots).unwrap();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue