Skip to content

Commit

Permalink
Merge pull request #6 from estebank/support-nightly
Browse files Browse the repository at this point in the history
Support both current and prior nightly `rustc`
  • Loading branch information
Ivan Dubrov authored May 29, 2019
2 parents a751b89 + b85523a commit 3c0ee19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ fn render_data_test(desc: &DataTestDesc, rendered: &mut Vec<TestDescAndFn>) {
};

let testfn = match case.testfn {
DataTestFn::TestFn(testfn) => TestFn::DynTestFn(testfn),
DataTestFn::TestFn(testfn) => TestFn::DynTestFn(Box::new(|| testfn())),
DataTestFn::BenchFn(benchfn) => TestFn::DynBenchFn(benchfn),
};

Expand Down

0 comments on commit 3c0ee19

Please sign in to comment.