Skip to content
Myr

cargo fmt

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

authored by sharkdp · committed by David Peter · parent 630a17f · Browse files · 3 files+3 added−4 removed
This commit

State

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

Diff stats

3 files+3 added−4 removed

  • other:+3 added−4 removed

3 files+3 added−4 removed

modified:src/hyperfine/benchmark.rs-1 removed
34 unmodified lines
35 time - shell_spawning_time36 }37}383939/// Run the given shell command and measure the execution time40pub fn time_shell_command(41 shell_cmd: &str,42 failure_action: CmdFailureAction,
315 unmodified lines
modified:src/hyperfine/internal.rs+2 added-2 removed
63 unmodified lines
64pub fn get_progress_bar(length: u64, msg: &str, option: &OutputStyleOption) -> ProgressBar {65 let progressbar_style = match *option {66 OutputStyleOption::Basic => ProgressStyle::default_bar(),67 OutputStyleOption::Full => ProgressStyle::default_spinner()68 .tick_chars("⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏")69 .template(" {spinner} {msg:<30} {wide_bar} ETA {eta_precise}"),68 .tick_chars("⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏")69 .template(" {spinner} {msg:<30} {wide_bar} ETA {eta_precise}"),70 };7172 let progress_bar = match *option {73 OutputStyleOption::Basic => ProgressBar::hidden(),
31 unmodified lines
modified:src/hyperfine/mod.rs+1 added-1 removed
3 unmodified lines
4pub mod outlier_detection;5pub mod warnings;67#[cfg(not(target_os = "windows"))]8pub mod cputime; 8pub mod cputime;