From 122bfc39dc0f0ac8dfc6441cef7e3a087eb7ba1d Mon Sep 17 00:00:00 2001 From: Pranav Gaddamadugu Date: Wed, 18 Oct 2023 09:56:15 -0400 Subject: [PATCH] clippy --- compiler/passes/src/code_generation/visit_statements.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/passes/src/code_generation/visit_statements.rs b/compiler/passes/src/code_generation/visit_statements.rs index 3ba83e29bc..8aa446dfe3 100644 --- a/compiler/passes/src/code_generation/visit_statements.rs +++ b/compiler/passes/src/code_generation/visit_statements.rs @@ -167,7 +167,7 @@ impl<'a> CodeGenerator<'a> { } // Write the destination register. let destination_register = format!("r{}", self.next_register); - write!(async_instruction, " into {};\n", destination_register).expect("failed to write to string"); + writeln!(async_instruction, " into {};", destination_register).expect("failed to write to string"); // Increment the register counter. self.next_register += 1; // Add the async instruction to the instructions.