cargo: annotate test summary count parsing
ci / check (push) Successful in 5s

This commit is contained in:
agent-pool-12
2026-10-17 16:00:54 +00:00
parent 6a9d35ceb8
commit 172a776eec
+1 -1
View File
@@ -254,7 +254,7 @@ fn test_count(output: &str, field: &str) -> u64 {
.filter_map(|part| { .filter_map(|part| {
let words: Vec<_> = part.split_whitespace().collect(); let words: Vec<_> = part.split_whitespace().collect();
let index = words.iter().position(|word| *word == field)?; let index = words.iter().position(|word| *word == field)?;
words.get(index.checked_sub(1)?)?.parse().ok() words.get(index.checked_sub(1)?)?.parse::<u64>().ok()
}) })
.sum() .sum()
} }