From 5eb870b199516f2922fec90bc5d4a51c5734c6e8 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Sun, 10 Dec 2017 12:58:22 -0500 Subject: [PATCH] Replace libtest/lib.rs:FnBox with std::boxed::FnBox. Fixes https://github.com/rust-lang/rust/issues/41810. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index fac3b71..8ad2769 100644 --- a/src/main.rs +++ b/src/main.rs @@ -710,7 +710,7 @@ pub fn make_test_name(config: &Config, testpaths: &TestPaths) -> test::TestName pub fn make_test_closure(config: &Config, testpaths: &TestPaths) -> test::TestFn { let config = config.clone(); let testpaths = testpaths.clone(); - test::DynTestFn(Box::new(move |()| runtest::run(config, &testpaths))) + test::DynTestFn(Box::new(move || runtest::run(config, &testpaths))) } /// Returns (Path to GDB, GDB Version, GDB has Rust Support)