mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 01:00:31 +00:00
Support Rust 1.20.0
This commit is contained in:
1 parent
fb9b30c7f8
commit
5ccf1a4d61
1 file changed
+1
-1
@@ -134,7 +134,7 @@ fn run_preparation_command(
|
|||||||
command: &Option<Command>,
|
command: &Option<Command>,
|
||||||
show_output: bool,
|
show_output: bool,
|
||||||
) -> io::Result<TimingResult> {
|
) -> io::Result<TimingResult> {
|
||||||
if let Some(ref cmd) = command {
|
if let &Some(ref cmd) = command {
|
||||||
let res = time_shell_command(cmd, show_output, CmdFailureAction::RaiseError, None);
|
let res = time_shell_command(cmd, show_output, CmdFailureAction::RaiseError, None);
|
||||||
if res.is_err() {
|
if res.is_err() {
|
||||||
return Err(io::Error::new(
|
return Err(io::Error::new(
|
||||||
|
|||||||
Reference in new issue
Block a user