mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-24 01:09:26 +00:00
Fix clippy warnings
This commit is contained in:
@ -317,8 +317,8 @@ mod tests {
|
||||
|
||||
// Compile for 32bit Linux
|
||||
let linux32 = Target::new(triple!("i686-unknown-linux-gnu"), CpuFeature::for_host());
|
||||
let (mut info, translation, inputs) = dummy_compilation_ingredients();
|
||||
let result = compiler.compile_module(&linux32, &mut info, &translation, inputs);
|
||||
let (info, translation, inputs) = dummy_compilation_ingredients();
|
||||
let result = compiler.compile_module(&linux32, &info, &translation, inputs);
|
||||
match result.unwrap_err() {
|
||||
CompileError::UnsupportedTarget(name) => assert_eq!(name, "i686"),
|
||||
error => panic!("Unexpected error: {:?}", error),
|
||||
@ -326,8 +326,8 @@ mod tests {
|
||||
|
||||
// Compile for win32
|
||||
let win32 = Target::new(triple!("i686-pc-windows-gnu"), CpuFeature::for_host());
|
||||
let (mut info, translation, inputs) = dummy_compilation_ingredients();
|
||||
let result = compiler.compile_module(&win32, &mut info, &translation, inputs);
|
||||
let (info, translation, inputs) = dummy_compilation_ingredients();
|
||||
let result = compiler.compile_module(&win32, &info, &translation, inputs);
|
||||
match result.unwrap_err() {
|
||||
CompileError::UnsupportedTarget(name) => assert_eq!(name, "i686"), // Windows should be checked before architecture
|
||||
error => panic!("Unexpected error: {:?}", error),
|
||||
|
Reference in New Issue
Block a user