Avoid redundant explicit borrow

This commit is contained in:
philipp authored and David Peter committed 2019-07-17 21:11:44 +02:00
1 parent 5849446315
commit a0bd0248ce
1 file changed
+1 -1
+1 -1
View File
@@ -150,7 +150,7 @@ fn run_intermediate_command(
show_output: bool,
error_output: &'static str,
) -> io::Result<TimingResult> {
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));