summaryrefslogtreecommitdiffstats
path: root/vendor/rayon-core/src/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rayon-core/src/test.rs')
-rw-r--r--vendor/rayon-core/src/test.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/vendor/rayon-core/src/test.rs b/vendor/rayon-core/src/test.rs
index 600e58b11..46d63a7df 100644
--- a/vendor/rayon-core/src/test.rs
+++ b/vendor/rayon-core/src/test.rs
@@ -1,7 +1,5 @@
#![cfg(test)]
-#[allow(deprecated)]
-use crate::Configuration;
use crate::{ThreadPoolBuildError, ThreadPoolBuilder};
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Barrier};
@@ -121,7 +119,6 @@ fn handler_panics_handled_correctly() {
}
#[test]
-#[allow(deprecated)]
fn check_config_build() {
let pool = ThreadPoolBuilder::new().num_threads(22).build().unwrap();
assert_eq!(pool.current_num_threads(), 22);
@@ -144,7 +141,7 @@ fn configuration() {
let thread_name = move |i| format!("thread_name_{}", i);
// Ensure we can call all public methods on Configuration
- Configuration::new()
+ crate::Configuration::new()
.thread_name(thread_name)
.num_threads(5)
.panic_handler(panic_handler)