[clippy] Pass a few argument types by value, not by reference;

Since Location is basically just a usize, and wasmparser::Type is an
enum, and both are copiable, this passes them down by value instead of
by reference, as suggested by Clippy.
This commit is contained in:
Benjamin Bouvier
2018-07-09 16:15:17 +02:00
committed by Dan Gohman
parent b263a8344c
commit 26523fdf5c
4 changed files with 52 additions and 57 deletions

View File

@@ -35,7 +35,7 @@ impl IsaSpec {
}
/// Parse an iterator of command line options and apply them to `config`.
pub fn parse_options<'a, I>(iter: I, config: &mut Configurable, loc: &Location) -> ParseResult<()>
pub fn parse_options<'a, I>(iter: I, config: &mut Configurable, loc: Location) -> ParseResult<()>
where
I: Iterator<Item = &'a str>,
{