From 5ccf1a4d613e8aa5613dc0fcf8980de915638cd9 Mon Sep 17 00:00:00 2001 From: Tuomas Siipola Date: Thu, 5 Jul 2018 00:12:08 +0300 Subject: [PATCH] Support Rust 1.20.0 --- 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 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(