[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:
committed by
Dan Gohman
parent
b263a8344c
commit
26523fdf5c
@@ -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>,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user