mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 16:18:57 +00:00
Avoid redundant explicit borrow
This commit is contained in:
1 parent
5849446315
commit
a0bd0248ce
1 file changed
+1
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user