diff options
Diffstat (limited to 'cli/tools/test/reporters/common.rs')
-rw-r--r-- | cli/tools/test/reporters/common.rs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/cli/tools/test/reporters/common.rs b/cli/tools/test/reporters/common.rs index 1dc879667..3d9cdba46 100644 --- a/cli/tools/test/reporters/common.rs +++ b/cli/tools/test/reporters/common.rs @@ -33,10 +33,7 @@ pub(super) fn format_test_step_ancestry( result } -pub fn format_test_for_summary( - cwd: &Url, - desc: &TestFailureDescription, -) -> String { +pub fn format_test_for_summary(cwd: &Url, desc: &TestDescription) -> String { format!( "{} {}", &desc.name, @@ -81,7 +78,7 @@ pub(super) fn report_sigint( let mut formatted_pending = BTreeSet::new(); for id in tests_pending { if let Some(desc) = tests.get(id) { - formatted_pending.insert(format_test_for_summary(cwd, &desc.into())); + formatted_pending.insert(format_test_for_summary(cwd, desc)); } if let Some(desc) = test_steps.get(id) { formatted_pending @@ -110,10 +107,7 @@ pub(super) fn report_summary( #[allow(clippy::type_complexity)] // Type alias doesn't look better here let mut failures_by_origin: BTreeMap< String, - ( - Vec<(&TestFailureDescription, &TestFailure)>, - Option<&JsError>, - ), + (Vec<(&TestDescription, &TestFailure)>, Option<&JsError>), > = BTreeMap::default(); let mut failure_titles = vec![]; for (description, failure) in &summary.failures { |