chore: apply unreachable_pub and missing_debug_implementations to all crates (#1424)

This commit is contained in:
Taiki Endo
2019-08-11 04:28:52 +09:00
committed by GitHub
parent d9f9c5658f
commit 6a125082e4
49 changed files with 322 additions and 225 deletions
+6 -6
View File
@@ -81,7 +81,7 @@ impl OrphanQueue<process::Child> for GlobalOrphanQueue {
}
#[must_use = "futures do nothing unless polled"]
pub struct Child {
pub(crate) struct Child {
inner: Reaper<process::Child, GlobalOrphanQueue, Signal>,
}
@@ -112,7 +112,7 @@ pub(crate) fn spawn_child(cmd: &mut process::Command, handle: &Handle) -> io::Re
}
impl Child {
pub fn id(&self) -> u32 {
pub(crate) fn id(&self) -> u32 {
self.inner.id()
}
}
@@ -132,7 +132,7 @@ impl Future for Child {
}
#[derive(Debug)]
pub struct Fd<T> {
pub(crate) struct Fd<T> {
inner: T,
}
@@ -196,9 +196,9 @@ where
}
}
pub type ChildStdin = PollEvented<Fd<process::ChildStdin>>;
pub type ChildStdout = PollEvented<Fd<process::ChildStdout>>;
pub type ChildStderr = PollEvented<Fd<process::ChildStderr>>;
pub(crate) type ChildStdin = PollEvented<Fd<process::ChildStdin>>;
pub(crate) type ChildStdout = PollEvented<Fd<process::ChildStdout>>;
pub(crate) type ChildStderr = PollEvented<Fd<process::ChildStderr>>;
fn stdio<T>(option: Option<T>, handle: &Handle) -> io::Result<Option<PollEvented<Fd<T>>>>
where