From 26a1675764c9f96cc96d75d2129dd6c828b8df51 Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Sat, 12 Dec 2020 12:27:09 -0500 Subject: Remove some redundant allocations --- xtask/src/codegen/gen_assists_docs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xtask/src/codegen') diff --git a/xtask/src/codegen/gen_assists_docs.rs b/xtask/src/codegen/gen_assists_docs.rs index d7c85ebe9..be218dea1 100644 --- a/xtask/src/codegen/gen_assists_docs.rs +++ b/xtask/src/codegen/gen_assists_docs.rs @@ -134,7 +134,7 @@ r#####" buf.push_str(&test) } - let buf = reformat(&buf.to_string())?; + let buf = reformat(&buf)?; codegen::update(&project_root().join("crates/assists/src/tests/generated.rs"), &buf, mode) } -- cgit v1.2.3