Formest with latest stable rustfmt.

This commit is contained in:
Dan Gohman
2019-01-22 04:17:52 -08:00
parent 01ed463c7a
commit 8769febdbd
2 changed files with 11 additions and 11 deletions

View File

@@ -142,13 +142,13 @@ pub fn invoke(
return Err(ActionError::Kind(format!( return Err(ActionError::Kind(format!(
"exported item \"{}\" is not a function", "exported item \"{}\" is not a function",
function_name function_name
))) )));
} }
None => { None => {
return Err(ActionError::Field(format!( return Err(ActionError::Field(format!(
"no export named \"{}\"", "no export named \"{}\"",
function_name function_name
))) )));
} }
}; };
@@ -232,13 +232,13 @@ pub fn inspect_memory<'instance>(
return Err(ActionError::Kind(format!( return Err(ActionError::Kind(format!(
"exported item \"{}\" is not a linear memory", "exported item \"{}\" is not a linear memory",
memory_name memory_name
))) )));
} }
None => { None => {
return Err(ActionError::Field(format!( return Err(ActionError::Field(format!(
"no export named \"{}\"", "no export named \"{}\"",
memory_name memory_name
))) )));
} }
}; };
@@ -256,13 +256,13 @@ pub fn get(instance: &Instance, global_name: &str) -> Result<RuntimeValue, Actio
return Err(ActionError::Kind(format!( return Err(ActionError::Kind(format!(
"exported item \"{}\" is not a global variable", "exported item \"{}\" is not a global variable",
global_name global_name
))) )));
} }
None => { None => {
return Err(ActionError::Field(format!( return Err(ActionError::Field(format!(
"no export named \"{}\"", "no export named \"{}\"",
global_name global_name
))) )));
} }
}; };
@@ -277,7 +277,7 @@ pub fn get(instance: &Instance, global_name: &str) -> Result<RuntimeValue, Actio
return Err(ActionError::Type(format!( return Err(ActionError::Type(format!(
"global with type {} not supported", "global with type {} not supported",
other other
))) )));
} }
}) })
} }

View File

@@ -57,7 +57,7 @@ pub fn link_module(
return Err(LinkError(format!( return Err(LinkError(format!(
"{}/{}: no provided import function", "{}/{}: no provided import function",
module_name, field module_name, field
))) )));
} }
} }
} }
@@ -94,7 +94,7 @@ pub fn link_module(
return Err(LinkError(format!( return Err(LinkError(format!(
"no provided import table for {}/{}", "no provided import table for {}/{}",
module_name, field module_name, field
))) )));
} }
} }
} }
@@ -147,7 +147,7 @@ pub fn link_module(
return Err(LinkError(format!( return Err(LinkError(format!(
"no provided import memory for {}/{}", "no provided import memory for {}/{}",
module_name, field module_name, field
))) )));
} }
} }
} }
@@ -177,7 +177,7 @@ pub fn link_module(
return Err(LinkError(format!( return Err(LinkError(format!(
"no provided import global for {}/{}", "no provided import global for {}/{}",
module_name, field module_name, field
))) )));
} }
} }
} }