mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 17:11:28 +00:00
Store exit codes as Options (and remove unwrapping)
This commit is contained in:
1 parent
3fcc6a187b
commit
5564407a97
5 files changed
+95
-99
No files matched your search
@@ -269,7 +269,7 @@ pub struct BenchmarkResult {
|
||||
pub times: Option<Vec<Second>>,
|
||||
|
||||
/// All run exit codes
|
||||
pub exit_codes: Vec<i32>,
|
||||
pub exit_codes: Vec<Option<i32>>,
|
||||
|
||||
/// Any parameter values used
|
||||
#[serde(skip_serializing_if = "BTreeMap::is_empty")]
|
||||
@@ -288,7 +288,7 @@ impl BenchmarkResult {
|
||||
min: Second,
|
||||
max: Second,
|
||||
times: Vec<Second>,
|
||||
exit_codes: Vec<i32>,
|
||||
exit_codes: Vec<Option<i32>>,
|
||||
parameters: BTreeMap<String, String>,
|
||||
) -> Self {
|
||||
BenchmarkResult {
|
||||
|
||||
Reference in new issue
Block a user