mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 17:11:28 +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,
|
show_output: bool,
|
||||||
error_output: &'static str,
|
error_output: &'static str,
|
||||||
) -> io::Result<TimingResult> {
|
) -> 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);
|
let res = time_shell_command(shell, cmd, show_output, CmdFailureAction::RaiseError, None);
|
||||||
if res.is_err() {
|
if res.is_err() {
|
||||||
return Err(io::Error::new(io::ErrorKind::Other, error_output));
|
return Err(io::Error::new(io::ErrorKind::Other, error_output));
|
||||||
|
|||||||
Reference in new issue
Block a user