From 61b8a25ad84bbfdc8171cd42a4ca6a019e2742ae Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Tue, 17 Jan 2023 10:51:23 -0800 Subject: [PATCH] make clippy happy --- packages/autofmt/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/autofmt/src/lib.rs b/packages/autofmt/src/lib.rs index 7961a256c..82cebffed 100644 --- a/packages/autofmt/src/lib.rs +++ b/packages/autofmt/src/lib.rs @@ -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(); }