Skip to content
Myr

Avoid redundant explicit borrow

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by philipp · committed by David Peter · parent 5849446 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/hyperfine/benchmark.rs+1 added-1 removed
148 unmodified lines
149 command: &Option<Command<'_>>,150 show_output: bool,151 error_output: &'static str,152) -> io::Result<TimingResult> {153 if let &Some(ref cmd) = command {153 if let Some(ref cmd) = command {154 let res = time_shell_command(shell, cmd, show_output, CmdFailureAction::RaiseError, None);155 if res.is_err() {156 return Err(io::Error::new(io::ErrorKind::Other, error_output));157 }
249 unmodified lines