File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,13 @@ use libtest2_harness::TestKind;
4949pub struct Trial {
5050 name : String ,
5151 #[ allow( clippy:: type_complexity) ]
52- runner : Box < dyn Fn ( & TestContext ) -> Result < ( ) , RunError > + Send + Sync > ,
52+ runner : Box < dyn Fn ( & TestContext ) -> RunResult + Send + Sync > ,
5353}
5454
5555impl Trial {
5656 pub fn test (
5757 name : impl Into < String > ,
58- runner : impl Fn ( & TestContext ) -> Result < ( ) , RunError > + Send + Sync + ' static ,
58+ runner : impl Fn ( & TestContext ) -> RunResult + Send + Sync + ' static ,
5959 ) -> Self {
6060 Self {
6161 name : name. into ( ) ,
@@ -78,7 +78,7 @@ impl Case for Trial {
7878 false
7979 }
8080
81- fn run ( & self , context : & TestContext ) -> Result < ( ) , RunError > {
81+ fn run ( & self , context : & TestContext ) -> RunResult {
8282 ( self . runner ) ( context)
8383 }
8484}
You can’t perform that action at this time.
0 commit comments