make clippy happy
This commit is contained in:
1 parent
b81eca0433
commit
61b8a25ad8
1 file changed
+2
-2
@@ -142,13 +142,13 @@ fn write_body(buf: &mut Writer, body: &CallBody) {
|
|||||||
// write all the indents with spaces and commas between
|
// write all the indents with spaces and commas between
|
||||||
for idx in 0..body.roots.len() - 1 {
|
for idx in 0..body.roots.len() - 1 {
|
||||||
let ident = &body.roots[idx];
|
let ident = &body.roots[idx];
|
||||||
buf.write_ident(&ident).unwrap();
|
buf.write_ident(ident).unwrap();
|
||||||
write!(&mut buf.out.buf, ", ").unwrap();
|
write!(&mut buf.out.buf, ", ").unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
// write the last ident without a comma
|
// write the last ident without a comma
|
||||||
let ident = &body.roots[body.roots.len() - 1];
|
let ident = &body.roots[body.roots.len() - 1];
|
||||||
buf.write_ident(&ident).unwrap();
|
buf.write_ident(ident).unwrap();
|
||||||
} else {
|
} else {
|
||||||
buf.write_body_indented(&body.roots).unwrap();
|
buf.write_body_indented(&body.roots).unwrap();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user