[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

@@ -51,7 +51,7 @@ pub fn parse_sets_and_triple(
parse_options(
flag_set.iter().map(|x| x.as_str()),
&mut flag_builder,
&Location { line_number: 0 },
Location { line_number: 0 },
).map_err(|err| err.to_string())?;
let mut words = flag_triple.trim().split_whitespace();
@@ -71,7 +71,7 @@ pub fn parse_sets_and_triple(
),
})?;
// Apply the ISA-specific settings to `isa_builder`.
parse_options(words, &mut isa_builder, &Location { line_number: 0 })
parse_options(words, &mut isa_builder, Location { line_number: 0 })
.map_err(|err| err.to_string())?;
Ok(OwnedFlagsOrIsa::Isa(