@@ -17,7 +17,8 @@ use ui_test::custom_flags::Flag;
1717use ui_test:: custom_flags:: edition:: Edition ;
1818use ui_test:: custom_flags:: rustfix:: RustfixMode ;
1919use ui_test:: spanned:: Spanned ;
20- use ui_test:: { Args , CommandBuilder , Config , Match , error_on_output_conflict, status_emitter} ;
20+ use ui_test:: status_emitter:: StatusEmitter ;
21+ use ui_test:: { Args , CommandBuilder , Config , Match , error_on_output_conflict} ;
2122
2223use std:: collections:: { BTreeMap , HashMap } ;
2324use std:: env:: { self , set_var, var_os} ;
@@ -217,7 +218,7 @@ fn run_ui(cx: &TestContext) {
217218 vec ! [ config] ,
218219 ui_test:: default_file_filter,
219220 ui_test:: default_per_file_config,
220- status_emitter :: Text :: from ( cx. args . format ) ,
221+ Box :: < dyn StatusEmitter > :: from ( cx. args . format ) ,
221222 )
222223 . unwrap ( ) ;
223224}
@@ -233,7 +234,7 @@ fn run_internal_tests(cx: &TestContext) {
233234 vec ! [ config] ,
234235 ui_test:: default_file_filter,
235236 ui_test:: default_per_file_config,
236- status_emitter :: Text :: from ( cx. args . format ) ,
237+ Box :: < dyn StatusEmitter > :: from ( cx. args . format ) ,
237238 )
238239 . unwrap ( ) ;
239240}
@@ -257,7 +258,7 @@ fn run_ui_toml(cx: &TestContext) {
257258 . envs
258259 . push ( ( "CLIPPY_CONF_DIR" . into ( ) , Some ( path. parent ( ) . unwrap ( ) . into ( ) ) ) ) ;
259260 } ,
260- status_emitter :: Text :: from ( cx. args . format ) ,
261+ Box :: < dyn StatusEmitter > :: from ( cx. args . format ) ,
261262 )
262263 . unwrap ( ) ;
263264}
@@ -304,7 +305,7 @@ fn run_ui_cargo(cx: &TestContext) {
304305 . then ( || ui_test:: default_any_file_filter ( path, config) && !ignored_32bit ( path) )
305306 } ,
306307 |_config, _file_contents| { } ,
307- status_emitter :: Text :: from ( cx. args . format ) ,
308+ Box :: < dyn StatusEmitter > :: from ( cx. args . format ) ,
308309 )
309310 . unwrap ( ) ;
310311}
0 commit comments