diff options
author | Taiki Endo <te316e89@gmail.com> | 2020-09-23 05:55:35 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 05:55:35 +0900 |
commit | 6866b24ca1a89fb6e7dbc63e20d8a66ee60a85b8 (patch) | |
tree | e8c2ed4165cadea5e139c13f281e963ab6681fdd /tokio/src/runtime/builder.rs | |
parent | e7091fde786722a5301270e6281fc3c449dcfc14 (diff) |
ci: deny warnings on '--cfg tokio_unstable' tests (#2859)
Diffstat (limited to 'tokio/src/runtime/builder.rs')
-rw-r--r-- | tokio/src/runtime/builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/runtime/builder.rs b/tokio/src/runtime/builder.rs index ed2cd251..42aed3e9 100644 --- a/tokio/src/runtime/builder.rs +++ b/tokio/src/runtime/builder.rs @@ -1,4 +1,4 @@ -use crate::loom::sync::{Arc, Mutex}; +use crate::loom::sync::Mutex; use crate::runtime::handle::Handle; use crate::runtime::shell::Shell; use crate::runtime::{blocking, io, time, Callback, Runtime, Spawner}; @@ -330,7 +330,7 @@ impl Builder { where F: Fn() + Send + Sync + 'static, { - self.before_stop = Some(Arc::new(f)); + self.before_stop = Some(std::sync::Arc::new(f)); self } |