From 868fdfcc36159e81640612e37266e286679b2a2d Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Sat, 17 Oct 2020 20:05:09 -0500 Subject: [PATCH] Fix clippy lints --- src/compile.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compile.rs b/src/compile.rs index d395bc0..fde8d05 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -170,7 +170,7 @@ impl Compiler { } fn push_output(&mut self, code: CodeObject) { - self.output_stack.push(code.into()); + self.output_stack.push(code); } fn push_new_code_object(&mut self, obj_name: String) { @@ -189,7 +189,7 @@ impl Compiler { } fn pop_code_object(&mut self) -> CodeObject { - self.output_stack.pop().unwrap().into() + self.output_stack.pop().unwrap() } fn compile_program(