From 24435471969e929907d37c3ba217f3cd455fe70b Mon Sep 17 00:00:00 2001 From: joseph-sentry Date: Wed, 27 Nov 2024 10:20:03 -0500 Subject: [PATCH] fix: avoid unwrapping, if there's an error parsing just set it to None --- src/junit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/junit.rs b/src/junit.rs index e28ec97..012e0d4 100644 --- a/src/junit.rs +++ b/src/junit.rs @@ -63,7 +63,7 @@ fn populate( .time .as_deref() .or(testsuite_time) - .map(|t| t.parse().unwrap()); + .and_then(|t| t.parse().ok()); let mut t = Testrun { name,