(args: Vec<String>)
| 3427 | } |
| 3428 | |
| 3429 | fn clean_cli_args(args: Vec<String>) -> Vec<String> { |
| 3430 | args.into_iter() |
| 3431 | .map(|arg| arg.trim().to_owned()) |
| 3432 | .filter(|arg| !arg.is_empty()) |
| 3433 | .collect() |
| 3434 | } |
| 3435 | |
| 3436 | fn parse_f64_arg(value: &str) -> Option<f64> { |
| 3437 | value.parse::<f64>().ok().filter(|value| value.is_finite()) |
no test coverage detected