summaryrefslogtreecommitdiffstats
path: root/tokio/src/process/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/process/mod.rs')
-rw-r--r--tokio/src/process/mod.rs30
1 files changed, 15 insertions, 15 deletions
diff --git a/tokio/src/process/mod.rs b/tokio/src/process/mod.rs
index 74ddacbc..14ffd20e 100644
--- a/tokio/src/process/mod.rs
+++ b/tokio/src/process/mod.rs
@@ -107,6 +107,21 @@
//! `tokio::process::Child` is dropped. The behavior of the standard library can
//! be regained with the [`Child::forget`](crate::process::Child::forget) method.
+#[path = "unix/mod.rs"]
+#[cfg(unix)]
+mod imp;
+
+#[path = "windows.rs"]
+#[cfg(windows)]
+mod imp;
+
+mod kill;
+
+use crate::io::{AsyncRead, AsyncReadExt, AsyncWrite};
+use crate::process::kill::Kill;
+
+use futures_core::TryFuture;
+use futures_util::try_future::try_join3;
use std::ffi::OsStr;
use std::future::Future;
use std::io;
@@ -120,21 +135,6 @@ use std::process::{Command as StdCommand, ExitStatus, Output, Stdio};
use std::task::Context;
use std::task::Poll;
-use self::kill::Kill;
-use futures_core::TryFuture;
-use futures_util::try_future::try_join3;
-use tokio_io::{AsyncRead, AsyncReadExt, AsyncWrite};
-
-#[path = "unix/mod.rs"]
-#[cfg(unix)]
-mod imp;
-
-#[path = "windows.rs"]
-#[cfg(windows)]
-mod imp;
-
-mod kill;
-
/// This structure mimics the API of [`std::process::Command`] found in the standard library, but
/// replaces functions that create a process with an asynchronous variant. The main provided
/// asynchronous functions are [spawn](Command::spawn), [status](Command::status), and