Fixed linting

This commit is contained in:
Syrus Akbary
2024-02-06 14:17:30 +01:00
committed by Christoph Herzog
parent fc3a2f7d34
commit 3ac237a02d
2 changed files with 4 additions and 3 deletions

View File

@ -13,11 +13,11 @@ use wasmer_types::{DeserializeError, Target};
pub fn get_default_compiler_config() -> Option<Box<dyn wasmer_compiler::CompilerConfig>> {
cfg_if::cfg_if! {
if #[cfg(feature = "cranelift")] {
Some(Box::new(wasmer_compiler_cranelift::Cranelift::default()))
Some(Box::<wasmer_compiler_cranelift::Cranelift>::default())
} else if #[cfg(feature = "llvm")] {
Some(Box::new(wasmer_compiler_llvm::LLVM::default()))
Some(Box::<wasmer_compiler_llvm::LLVM>::default())
} else if #[cfg(feature = "singlepass")] {
Some(Box::new(wasmer_compiler_singlepass::Singlepass::default()))
Some(Box::<wasmer_compiler_singlepass::Singlepass>::default())
}
else {
None