From a0bd0248ce272e440c17fedeca66fc478cfec8b5 Mon Sep 17 00:00:00 2001 From: philipp Date: Sat, 13 Jul 2019 10:10:59 +0200 Subject: [PATCH] Avoid redundant explicit borrow --- src/hyperfine/benchmark.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hyperfine/benchmark.rs b/src/hyperfine/benchmark.rs index ac7172b..3ece1f9 100644 --- a/src/hyperfine/benchmark.rs +++ b/src/hyperfine/benchmark.rs @@ -150,7 +150,7 @@ fn run_intermediate_command( show_output: bool, error_output: &'static str, ) -> io::Result { - if let &Some(ref cmd) = command { + if let Some(ref cmd) = command { let res = time_shell_command(shell, cmd, show_output, CmdFailureAction::RaiseError, None); if res.is_err() { return Err(io::Error::new(io::ErrorKind::Other, error_output));