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")]