Skip to content

Commit

Permalink
Fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Jan 7, 2020
1 parent 720d4ec commit f967770
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/bin/wasmer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -954,23 +954,24 @@ fn get_backend(backend: Backend, _path: &PathBuf) -> Backend {
Ok(wasm_binary) => wasm_binary.len(),
Err(_e) => 0,
};
if binary_size > 10485760 || cfg!(target_arch = "aarch64")
{
if binary_size > 10485760 || cfg!(target_arch = "aarch64") {
return Backend::Singlepass;
}
}

#[cfg(feature = "backend-cranelift")] {

#[cfg(feature = "backend-cranelift")]
{
return Backend::Cranelift;
}

#[cfg(feature = "backend-llvm")] {
#[cfg(feature = "backend-llvm")]
{
return Backend::LLVM;
}

panic!("Can't find any backend");
}
backend => backend
backend => backend,
}
}

Expand Down

0 comments on commit f967770

Please sign in to comment.