diff --git a/src/hyperfine/benchmark.rs b/src/hyperfine/benchmark.rs index 04dfff7..c690f43 100644 --- a/src/hyperfine/benchmark.rs +++ b/src/hyperfine/benchmark.rs @@ -134,7 +134,7 @@ fn run_preparation_command( command: &Option, show_output: bool, ) -> io::Result { - if let Some(ref cmd) = command { + if let &Some(ref cmd) = command { let res = time_shell_command(cmd, show_output, CmdFailureAction::RaiseError, None); if res.is_err() { return Err(io::Error::new(