mirror of
https://github.com/mii443/wasmer.git
synced 2025-09-03 16:09:20 +00:00
Fixed linting
This commit is contained in:
committed by
Christoph Herzog
parent
fc3a2f7d34
commit
3ac237a02d
@ -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
|
||||
|
Reference in New Issue
Block a user