Skip to content

Commit 3c0ee19

Browse files
author
Ivan Dubrov
authored
Merge pull request #6 from estebank/support-nightly
Support both current and prior nightly `rustc`
2 parents a751b89 + b85523a commit 3c0ee19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ fn render_data_test(desc: &DataTestDesc, rendered: &mut Vec<TestDescAndFn>) {
168168
};
169169

170170
let testfn = match case.testfn {
171-
DataTestFn::TestFn(testfn) => TestFn::DynTestFn(testfn),
171+
DataTestFn::TestFn(testfn) => TestFn::DynTestFn(Box::new(|| testfn())),
172172
DataTestFn::BenchFn(benchfn) => TestFn::DynBenchFn(benchfn),
173173
};
174174

0 commit comments

Comments
 (0)