From 82b44345a5bd6a337eccc36b37535b4c046976f2 Mon Sep 17 00:00:00 2001 From: Philipp Krones Date: Fri, 26 Jul 2024 11:40:03 +0200 Subject: [PATCH] Bump ui_test version -> 0.25 --- Cargo.toml | 2 +- tests/compile-test.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bb4dc97e748..9b8f5c4b6cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ color-print = "0.3.4" anstream = "0.6.0" [dev-dependencies] -ui_test = "0.24" +ui_test = "0.25" regex = "1.5.5" toml = "0.7.3" walkdir = "2.3" diff --git a/tests/compile-test.rs b/tests/compile-test.rs index ea3a0a93ecc..5d480adc735 100644 --- a/tests/compile-test.rs +++ b/tests/compile-test.rs @@ -209,7 +209,8 @@ fn run_ui_toml() { ui_test::run_tests_generic( vec![config], ui_test::default_file_filter, - |config, path, _file_contents| { + |config, file_contents| { + let path = file_contents.span().file; config .program .envs @@ -261,7 +262,7 @@ fn run_ui_cargo() { path.ends_with("Cargo.toml") .then(|| ui_test::default_any_file_filter(path, config) && !ignored_32bit(path)) }, - |_config, _path, _file_contents| {}, + |_config, _file_contents| {}, status_emitter::Text::from(args.format), ) .unwrap();