From c9da6b1ef53c40fe2fe2f803eb154e5eb4920301 Mon Sep 17 00:00:00 2001 From: Tobias Tom Hodapp Date: Fri, 6 Dec 2024 14:25:34 +0100 Subject: [PATCH] Removed double box --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7515bfc..5641c7d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -38,10 +38,10 @@ fn main() -> Result<(), Box> { let file_paths = config.files.clone(); - let codegen_backend = Box::new(match config.target_language { + let codegen_backend = match config.target_language { config::TargetLanguage::SystemVerilog => Box::new(VerilogCodegenBackend) as Box, config::TargetLanguage::VHDL => Box::new(VHDLCodegenBackend) as Box, - }); + }; if config.use_lsp { #[cfg(feature = "lsp")]