Skip to content

Commit

Permalink
Remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn committed Mar 13, 2021
1 parent b0884b6 commit 048bc21
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tokio/tests/rt_handle_block_on.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#![cfg(feature = "full")]

use std::time::Duration;
use tempfile::tempdir;
use tokio::runtime::{Handle, Runtime};
use tokio::sync::mpsc;
use tokio::task::spawn_blocking;
Expand Down Expand Up @@ -297,7 +296,7 @@ rt_test! {
let rt = rt();
let _enter = rt.enter();

let dir = tempdir().unwrap();
let dir = tempfile::tempdir().unwrap();
let path = dir.path().join("socket");

rt.shutdown_timeout(Duration::from_secs(1000));
Expand All @@ -317,7 +316,7 @@ rt_test! {
let rt = rt();
let _enter = rt.enter();

let dir = tempdir().unwrap();
let dir = tempfile::tempdir().unwrap();
let path = dir.path().join("socket");

let listener = net::UnixListener::bind(path).unwrap();
Expand All @@ -337,7 +336,7 @@ rt_test! {
let rt = rt();
let _enter = rt.enter();

let dir = tempdir().unwrap();
let dir = tempfile::tempdir().unwrap();
let path = dir.path().join("socket");

let listener = net::UnixListener::bind(path).unwrap();
Expand Down Expand Up @@ -378,7 +377,7 @@ multi_threaded_rt_test! {
let rt = rt();
let _enter = rt.enter();

let dir = tempdir().unwrap();
let dir = tempfile::tempdir().unwrap();
let path = dir.path().join("socket");

let listener = net::UnixListener::bind(path).unwrap();
Expand Down

0 comments on commit 048bc21

Please sign in to comment.