Store exit codes as Options (and remove unwrapping)

This commit is contained in:
Jordi Chauzi authored and David Peter committed 2021-05-10 14:55:04 +02:00
1 parent 3fcc6a187b
commit 5564407a97
5 files changed
+95 -99

No files matched your search

+2 -2
View File
@@ -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 {