options.rs
This file
Path
src/options.rs
407 lines · 12.0 KiB · Rust
Last changed by
Merge branch '1'David Peterbefore adoptionc4f7bbb
History of this fileTake it
The walk stopped after 200 commits: lines older than abd0d33 point at it.
Implement --output={null,pipe,<FILE>}Tavian Barnesbefore adoption277807c
lines 1–2why, one step back1use std::fs::File;2use std::path::PathBuf;Move Stdio extraction to enumDavid Peterbefore adoption9b8f2a9
line 3why, one step back3use std::process::{Command, Stdio};Merge branch '1'David Peterbefore adoptionc4f7bbb
line 4why, one step back4use std::{cmp, env, fmt, io};Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
line 5why, one step back5New Scheduler structDavid Peterbefore adoption72d2772
line 6why, one step back6use anyhow::ensure;Move convert_cli_arguments_to_options to HyperfineOptionsDavid Peterbefore adoption39a85b8
lines 7–9why, one step back7use atty::Stream;8use clap::ArgMatches;9New Scheduler structDavid Peterbefore adoption72d2772
line 10why, one step back10use crate::command::Commands;Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
line 11why, one step back11use crate::error::OptionsError;Move a few modules to utilDavid Peterbefore adoption5c634c9
line 12why, one step back12use crate::util::units::{Second, Unit};Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
line 13why, one step back13New Scheduler structDavid Peterbefore adoption72d2772
lines 14–15why, one step back14use anyhow::Result;15Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 16–26why, one step back16#[cfg(not(windows))]17pub const DEFAULT_SHELL: &str = "sh";1819#[cfg(windows)]20pub const DEFAULT_SHELL: &str = "cmd.exe";2122/// Shell to use for executing benchmarked commands23#[derive(Debug)]24pub enum Shell {25 /// Default shell command26 Default(&'static str),Fix clippy warningDavid Peterbefore adoption250db61
line 27why, one step back27Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 28–48why, one step back28 /// Custom shell command specified via --shell29 Custom(Vec<String>),30}3132impl Default for Shell {33 fn default() -> Self {34 Shell::Default(DEFAULT_SHELL)35 }36}3738impl fmt::Display for Shell {39 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {40 match self {41 Shell::Default(cmd) => write!(f, "{}", cmd),42 Shell::Custom(cmdline) => write!(f, "{}", shell_words::join(cmdline)),43 }44 }45}4647impl Shell {48 /// Parse given string as shell command lineFix clippy warningsDavid Peterbefore adoptionf029a46
line 49why, one step back49 pub fn parse_from_str<'a>(s: &str) -> Result<Self, OptionsError<'a>> {Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 50–97why, one step back50 let v = shell_words::split(s).map_err(OptionsError::ShellParseError)?;51 if v.is_empty() || v[0].is_empty() {52 return Err(OptionsError::EmptyShell);53 }54 Ok(Shell::Custom(v))55 }5657 pub fn command(&self) -> Command {58 match self {59 Shell::Default(cmd) => Command::new(cmd),60 Shell::Custom(cmdline) => {61 let mut c = Command::new(&cmdline[0]);62 c.args(&cmdline[1..]);63 c64 }65 }66 }67}6869/// Action to take when an executed command fails.70#[derive(Debug, Clone, Copy, PartialEq)]71pub enum CmdFailureAction {72 /// Exit with an error message73 RaiseError,7475 /// Simply ignore the non-zero exit code76 Ignore,77}7879/// Output style type option80#[derive(Debug, Clone, Copy, PartialEq)]81pub enum OutputStyleOption {82 /// Do not output with colors or any special formatting83 Basic,8485 /// Output with full color and formatting86 Full,8788 /// Keep elements such as progress bar, but use no coloring89 NoColor,9091 /// Keep coloring, but use no progress bar92 Color,9394 /// Disable all the output95 Disabled,96}97Rename Runs to RunBoundsDavid Peterbefore adoptionbea0cfa
lines 98–99why, one step back98/// Bounds for the number of benchmark runs99pub struct RunBounds {Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 100–106why, one step back100 /// Minimum number of benchmark runs101 pub min: u64,102103 /// Maximum number of benchmark runs104 pub max: Option<u64>,105}106Rename Runs to RunBoundsDavid Peterbefore adoptionbea0cfa
line 107why, one step back107impl Default for RunBounds {Turn show_output into enumDavid Peterbefore adoption0ebd76d
line 108why, one step back108 fn default() -> Self {Rename Runs to RunBoundsDavid Peterbefore adoptionbea0cfa
line 109why, one step back109 RunBounds { min: 10, max: None }Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 110–112why, one step back110 }111}112Turn show_output into enumDavid Peterbefore adoption0ebd76d
line 113why, one step back113/// How to handle the output of benchmarked commandsImplement --output={null,pipe,<FILE>}Tavian Barnesbefore adoption277807c
line 114why, one step back114#[derive(Debug, Clone, PartialEq)]Turn show_output into enumDavid Peterbefore adoption0ebd76d
line 115why, one step back115pub enum CommandOutputPolicy {Address review commentsTavian Barnesbefore adoption3df63ba
lines 116–117why, one step back116 /// Redirect output to the null device117 Null,Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
line 118why, one step back118Implement --output={null,pipe,<FILE>}Tavian Barnesbefore adoption277807c
lines 119–124why, one step back119 /// Feed output through a pipe before discarding it120 Pipe,121122 /// Redirect output to a file123 File(PathBuf),124Turn show_output into enumDavid Peterbefore adoption0ebd76d
line 125why, one step back125 /// Show command output on the terminalAddress review commentsTavian Barnesbefore adoption3df63ba
line 126why, one step back126 Inherit,Turn show_output into enumDavid Peterbefore adoption0ebd76d
lines 127–130why, one step back127}128129impl Default for CommandOutputPolicy {130 fn default() -> Self {Address review commentsTavian Barnesbefore adoption3df63ba
line 131why, one step back131 CommandOutputPolicy::NullMove Stdio extraction to enumDavid Peterbefore adoption9b8f2a9
lines 132–135why, one step back132 }133}134135impl CommandOutputPolicy {Implement --output={null,pipe,<FILE>}Tavian Barnesbefore adoption277807c
lines 136–137why, one step back136 pub fn get_stdout_stderr(&self) -> io::Result<(Stdio, Stdio)> {137 let streams = match self {Address review commentsTavian Barnesbefore adoption3df63ba
line 138why, one step back138 CommandOutputPolicy::Null => (Stdio::null(), Stdio::null()),Implement --output={null,pipe,<FILE>}Tavian Barnesbefore adoption277807c
lines 139–147why, one step back139140 // Typically only stdout is performance-relevant, so just pipe that141 CommandOutputPolicy::Pipe => (Stdio::piped(), Stdio::null()),142143 CommandOutputPolicy::File(path) => {144 let file = File::create(&path)?;145 (file.into(), Stdio::null())146 }147Address review commentsTavian Barnesbefore adoption3df63ba
line 148why, one step back148 CommandOutputPolicy::Inherit => (Stdio::inherit(), Stdio::inherit()),Implement --output={null,pipe,<FILE>}Tavian Barnesbefore adoption277807c
lines 149–151why, one step back149 };150151 Ok(streams)Turn show_output into enumDavid Peterbefore adoption0ebd76d
lines 152–154why, one step back152 }153}154Add debug/mock modeDavid Peterbefore adoption6f51232
line 155why, one step back155pub enum ExecutorKind {Use raw executor by default, skip intermediate shellDavid Peterbefore adoptiond9418e0
line 156why, one step back156 Raw,Add debug/mock modeDavid Peterbefore adoption6f51232
line 157why, one step back157 Shell(Shell),Proper shell overhead computationDavid Peterbefore adoption6887835
line 158why, one step back158 Mock(Option<String>),Add debug/mock modeDavid Peterbefore adoption6f51232
lines 159–166why, one step back159}160161impl Default for ExecutorKind {162 fn default() -> Self {163 ExecutorKind::Shell(Shell::default())164 }165}166Turn show_output into enumDavid Peterbefore adoption0ebd76d
lines 167–168why, one step back167/// The main settings for a hyperfine benchmark session168pub struct Options {Rename Runs to RunBoundsDavid Peterbefore adoptionbea0cfa
lines 169–170why, one step back169 /// Upper and lower bound for the number of benchmark runs170 pub run_bounds: RunBounds,Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
line 171why, one step back171Turn show_output into enumDavid Peterbefore adoption0ebd76d
lines 172–174why, one step back172 /// Number of warmup runs173 pub warmup_count: u64,174Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
line 175why, one step back175 /// Minimum benchmarking timeTurn show_output into enumDavid Peterbefore adoption0ebd76d
line 176why, one step back176 pub min_benchmarking_time: Second,Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 177–178why, one step back177178 /// Whether or not to ignore non-zero exit codesTurn show_output into enumDavid Peterbefore adoption0ebd76d
line 179why, one step back179 pub command_failure_action: CmdFailureAction,Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
line 180why, one step back180Rename parse to from_strDavid Peterbefore adoptionf9e62e5
line 181why, one step back181 /// Command(s) to run before each timing runMake stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 182–183why, one step back182 pub preparation_command: Option<Vec<String>>,183Turn show_output into enumDavid Peterbefore adoption0ebd76d
lines 184–187why, one step back184 /// Command to run before each *batch* of timing runs, i.e. before each individual benchmark185 pub setup_command: Option<String>,186187 /// Command to run after each *batch* of timing runs, i.e. after each individual benchmarkMake stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 188–189why, one step back188 pub cleanup_command: Option<String>,189Turn show_output into enumDavid Peterbefore adoption0ebd76d
line 190why, one step back190 /// What color mode to use for the terminal outputMake stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 191–192why, one step back191 pub output_style: OutputStyleOption,192Add debug/mock modeDavid Peterbefore adoption6f51232
lines 193–194why, one step back193 /// Determines how we run commands194 pub executor_kind: ExecutorKind,Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
line 195why, one step back195Turn show_output into enumDavid Peterbefore adoption0ebd76d
lines 196–197why, one step back196 /// What to do with the output of the benchmarked command197 pub command_output_policy: CommandOutputPolicy,Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
line 198why, one step back198Remove unused optionDavid Peterbefore adoption21f76a3
line 199why, one step back199 /// Which time unit to use when displaying resulsMake stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 200–202why, one step back200 pub time_unit: Option<Unit>,201}202Rename to OptionsDavid Peterbefore adoptionb54b2f8
lines 203–205why, one step back203impl Default for Options {204 fn default() -> Options {205 Options {Rename Runs to RunBoundsDavid Peterbefore adoptionbea0cfa
line 206why, one step back206 run_bounds: RunBounds::default(),Remove unused optionDavid Peterbefore adoption21f76a3
line 207why, one step back207 warmup_count: 0,Turn show_output into enumDavid Peterbefore adoption0ebd76d
lines 208–209why, one step back208 min_benchmarking_time: 3.0,209 command_failure_action: CmdFailureAction::RaiseError,Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
line 210why, one step back210 preparation_command: None,Remove unused optionDavid Peterbefore adoption21f76a3
line 211why, one step back211 setup_command: None,Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 212–213why, one step back212 cleanup_command: None,213 output_style: OutputStyleOption::Full,Add debug/mock modeDavid Peterbefore adoption6f51232
line 214why, one step back214 executor_kind: ExecutorKind::default(),Address review commentsTavian Barnesbefore adoption3df63ba
line 215why, one step back215 command_output_policy: CommandOutputPolicy::Null,Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 216–217why, one step back216 time_unit: None,217 }Move convert_cli_arguments_to_options to HyperfineOptionsDavid Peterbefore adoption39a85b8
lines 218–220why, one step back218 }219}220Rename to OptionsDavid Peterbefore adoptionb54b2f8
line 221why, one step back221impl Options {Move convert_cli_arguments_to_options to HyperfineOptionsDavid Peterbefore adoption39a85b8
lines 222–245why, one step back222 pub fn from_cli_arguments<'a>(matches: &ArgMatches) -> Result<Self, OptionsError<'a>> {223 let mut options = Self::default();224 let param_to_u64 = |param| {225 matches226 .value_of(param)227 .map(|n| {228 n.parse::<u64>()229 .map_err(|e| OptionsError::NumericParsingError(param, e))230 })231 .transpose()232 };233234 options.warmup_count = param_to_u64("warmup")?.unwrap_or(options.warmup_count);235236 let mut min_runs = param_to_u64("min-runs")?;237 let mut max_runs = param_to_u64("max-runs")?;238239 if let Some(runs) = param_to_u64("runs")? {240 min_runs = Some(runs);241 max_runs = Some(runs);242 }243244 match (min_runs, max_runs) {245 (Some(min), None) => {Rename Runs to RunBoundsDavid Peterbefore adoptionbea0cfa
line 246why, one step back246 options.run_bounds.min = min;Move convert_cli_arguments_to_options to HyperfineOptionsDavid Peterbefore adoption39a85b8
lines 247–249why, one step back247 }248 (None, Some(max)) => {249 // Since the minimum was not explicit we lower it if max is below the default min.Rename Runs to RunBoundsDavid Peterbefore adoptionbea0cfa
lines 250–251why, one step back250 options.run_bounds.min = cmp::min(options.run_bounds.min, max);251 options.run_bounds.max = Some(max);Move convert_cli_arguments_to_options to HyperfineOptionsDavid Peterbefore adoption39a85b8
lines 252–256why, one step back252 }253 (Some(min), Some(max)) if min > max => {254 return Err(OptionsError::EmptyRunsRange);255 }256 (Some(min), Some(max)) => {Rename Runs to RunBoundsDavid Peterbefore adoptionbea0cfa
lines 257–258why, one step back257 options.run_bounds.min = min;258 options.run_bounds.max = Some(max);Move convert_cli_arguments_to_options to HyperfineOptionsDavid Peterbefore adoption39a85b8
lines 259–270why, one step back259 }260 (None, None) => {}261 };262263 options.setup_command = matches.value_of("setup").map(String::from);264265 options.preparation_command = matches266 .values_of("prepare")267 .map(|values| values.map(String::from).collect::<Vec<String>>());268269 options.cleanup_command = matches.value_of("cleanup").map(String::from);270Turn show_output into enumDavid Peterbefore adoption0ebd76d
line 271why, one step back271 options.command_output_policy = if matches.is_present("show-output") {Address review commentsTavian Barnesbefore adoption3df63ba
line 272why, one step back272 CommandOutputPolicy::InheritImplement --output={null,pipe,<FILE>}Tavian Barnesbefore adoption277807c
lines 273–274why, one step back273 } else if let Some(output) = matches.value_of("output") {274 match output {Address review commentsTavian Barnesbefore adoption3df63ba
line 275why, one step back275 "null" => CommandOutputPolicy::Null,Implement --output={null,pipe,<FILE>}Tavian Barnesbefore adoption277807c
line 276why, one step back276 "pipe" => CommandOutputPolicy::Pipe,Address review commentsTavian Barnesbefore adoption3df63ba
line 277why, one step back277 "inherit" => CommandOutputPolicy::Inherit,Forbid --output=file without a path separatorTavian Barnesbefore adoptionefdf735
lines 278–284why, one step back278 arg => {279 let path = PathBuf::from(arg);280 if path.components().count() <= 1 {281 return Err(OptionsError::UnknownOutputPolicy(arg.to_string()));282 }283 CommandOutputPolicy::File(path)284 }Implement --output={null,pipe,<FILE>}Tavian Barnesbefore adoption277807c
line 285why, one step back285 }Turn show_output into enumDavid Peterbefore adoption0ebd76d
line 286why, one step back286 } else {Address review commentsTavian Barnesbefore adoption3df63ba
line 287why, one step back287 CommandOutputPolicy::NullTurn show_output into enumDavid Peterbefore adoption0ebd76d
line 288why, one step back288 };Move convert_cli_arguments_to_options to HyperfineOptionsDavid Peterbefore adoption39a85b8
lines 289–296why, one step back289290 options.output_style = match matches.value_of("style") {291 Some("full") => OutputStyleOption::Full,292 Some("basic") => OutputStyleOption::Basic,293 Some("nocolor") => OutputStyleOption::NoColor,294 Some("color") => OutputStyleOption::Color,295 Some("none") => OutputStyleOption::Disabled,296 _ => {Address review commentsTavian Barnesbefore adoption3df63ba
lines 297–298why, one step back297 if options.command_output_policy == CommandOutputPolicy::Inherit298 || !atty::is(Stream::Stdout)Turn show_output into enumDavid Peterbefore adoption0ebd76d
line 299why, one step back299 {Move convert_cli_arguments_to_options to HyperfineOptionsDavid Peterbefore adoption39a85b8
line 300why, one step back300 OutputStyleOption::BasicMerge branch '1'David Peterbefore adoptionc4f7bbb
lines 301–308why, one step back301 } else if env::var_os("TERM")302 .map(|t| t == "unknown" || t == "dumb")303 .unwrap_or(true)304 || env::var_os("NO_COLOR")305 .map(|t| !t.is_empty())306 .unwrap_or(false)307 {308 OutputStyleOption::NoColorAddress review commentsTavian Barnesbefore adoption3df63ba
lines 309–310why, one step back309 } else {310 OutputStyleOption::FullMove convert_cli_arguments_to_options to HyperfineOptionsDavid Peterbefore adoption39a85b8
lines 311–324why, one step back311 }312 }313 };314315 match options.output_style {316 OutputStyleOption::Basic | OutputStyleOption::NoColor => {317 colored::control::set_override(false)318 }319 OutputStyleOption::Full | OutputStyleOption::Color => {320 colored::control::set_override(true)321 }322 OutputStyleOption::Disabled => {}323 };324Switch to --shell=none/-N, do not change the defaultDavid Peterbefore adoption365ff25
lines 325–335why, one step back325 options.executor_kind = if matches.is_present("no-shell") {326 ExecutorKind::Raw327 } else {328 match (matches.is_present("debug-mode"), matches.value_of("shell")) {329 (false, Some(shell)) if shell == "default" => ExecutorKind::Shell(Shell::default()),330 (false, Some(shell)) if shell == "none" => ExecutorKind::Raw,331 (false, Some(shell)) => ExecutorKind::Shell(Shell::parse_from_str(shell)?),332 (false, None) => ExecutorKind::Shell(Shell::default()),333 (true, Some(shell)) => ExecutorKind::Mock(Some(shell.into())),334 (true, None) => ExecutorKind::Mock(None),335 }Add debug/mock modeDavid Peterbefore adoption6f51232
line 336why, one step back336 };Move convert_cli_arguments_to_options to HyperfineOptionsDavid Peterbefore adoption39a85b8
lines 337–338why, one step back337338 if matches.is_present("ignore-failure") {Turn show_output into enumDavid Peterbefore adoption0ebd76d
line 339why, one step back339 options.command_failure_action = CmdFailureAction::Ignore;Move convert_cli_arguments_to_options to HyperfineOptionsDavid Peterbefore adoption39a85b8
lines 340–348why, one step back340 }341342 options.time_unit = match matches.value_of("time-unit") {343 Some("millisecond") => Some(Unit::MilliSecond),344 Some("second") => Some(Unit::Second),345 _ => None,346 };347348 Ok(options)New Scheduler structDavid Peterbefore adoption72d2772
lines 349–353why, one step back349 }350351 pub fn validate_against_command_list(&self, commands: &Commands) -> Result<()> {352 if let Some(preparation_command) = &self.preparation_command {353 ensure!(Fix clippy warningDavid Peterbefore adoption250db61
lines 354–355why, one step back354 preparation_command.len() <= 1355 || commands.num_commands() == preparation_command.len(),New Scheduler structDavid Peterbefore adoption72d2772
lines 356–361why, one step back356 "The '--prepare' option has to be provided just once or N times, where N is the \357 number of benchmark commands."358 );359 }360361 Ok(())Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 362–365why, one step back362 }363}364365#[test]Rename testDavid Peterbefore adoption811e6b5
line 366why, one step back366fn test_default_shell() {Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 367–372why, one step back367 let shell = Shell::default();368369 let s = format!("{}", shell);370 assert_eq!(&s, DEFAULT_SHELL);371372 let cmd = shell.command();Use get_programDavid Peterbefore adoption6645fa1
line 373why, one step back373 assert_eq!(cmd.get_program(), DEFAULT_SHELL);Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 374–376why, one step back374}375376#[test]Rename parse to from_strDavid Peterbefore adoptionf9e62e5
line 377why, one step back377fn test_can_parse_shell_command_line_from_str() {Fix clippy warningsDavid Peterbefore adoptionf029a46
line 378why, one step back378 let shell = Shell::parse_from_str("shell -x 'aaa bbb'").unwrap();Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 379–383why, one step back379380 let s = format!("{}", shell);381 assert_eq!(&s, "shell -x 'aaa bbb'");382383 let cmd = shell.command();Fix clippy suggestionsDavid Peterbefore adoptionf5de548
lines 384–390why, one step back384 assert_eq!(cmd.get_program().to_string_lossy(), "shell");385 assert_eq!(386 cmd.get_args()387 .map(|a| a.to_string_lossy())388 .collect::<Vec<_>>(),389 vec!["-x", "aaa bbb"]390 );Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
lines 391–392why, one step back391392 // Error casesFix clippy suggestionsDavid Peterbefore adoptionf5de548
line 393why, one step back393 assert!(matches!(Fix clippy warningsDavid Peterbefore adoptionf029a46
line 394why, one step back394 Shell::parse_from_str("shell 'foo").unwrap_err(),Fix clippy suggestionsDavid Peterbefore adoptionf5de548
lines 395–396why, one step back395 OptionsError::ShellParseError(_)396 ));Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
line 397why, one step back397Fix formattingDavid Peterbefore adoptiona35e7e2
line 398why, one step back398 assert!(matches!(Fix clippy warningsDavid Peterbefore adoptionf029a46
line 399why, one step back399 Shell::parse_from_str("").unwrap_err(),Fix formattingDavid Peterbefore adoptiona35e7e2
lines 400–401why, one step back400 OptionsError::EmptyShell401 ));Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
line 402why, one step back402Fix formattingDavid Peterbefore adoptiona35e7e2
line 403why, one step back403 assert!(matches!(Fix clippy warningsDavid Peterbefore adoptionf029a46
line 404why, one step back404 Shell::parse_from_str("''").unwrap_err(),Fix formattingDavid Peterbefore adoptiona35e7e2
lines 405–406why, one step back405 OptionsError::EmptyShell406 ));Make stddev fields optional, hide "± σ" for 1 runDavid Peterbefore adoptionabd0d33
line 407why, one step back407}