]> git.lizzy.rs Git - rust.git/blobdiff - library/test/src/lib.rs
rework and document backoff behavior of `sync::mpsc`
[rust.git] / library / test / src / lib.rs
index f6a41bbb88c852c8090e95b003e64379cc9759bb..30dc4ff855315d2c0f0bca55669d580e50d7f92e 100644 (file)
@@ -789,7 +789,7 @@ fn run_test_in_spawned_subprocess(
         }
     });
     let record_result2 = record_result.clone();
-    panic::set_hook(Box::new(move |info| record_result2(Some(&info))));
+    panic::set_hook(Box::new(move |info| record_result2(Some(info))));
     if let Err(message) = testfn() {
         panic!("{}", message);
     }