From e281e4f4cb78f06ddaf134fb3725a2e144f3df16 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Mon, 14 May 2018 12:00:19 -0700 Subject: [PATCH] Remove fuchsia references as it is not supported. (#355) --- src/reactor/poll_evented.rs | 4 ++-- tokio-reactor/src/lib.rs | 4 ++-- tokio-tcp/src/listener.rs | 2 +- tokio-tcp/src/stream.rs | 2 +- tokio-udp/src/socket.rs | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/reactor/poll_evented.rs b/src/reactor/poll_evented.rs index dfe654e1c..d5f6750b6 100644 --- a/src/reactor/poll_evented.rs +++ b/src/reactor/poll_evented.rs @@ -428,7 +428,7 @@ fn usize2ready(bits: usize) -> Ready { ready | platform::usize2ready(bits) } -#[cfg(all(unix, not(target_os = "fuchsia")))] +#[cfg(unix)] mod platform { use mio::Ready; use mio::unix::UnixReady; @@ -516,7 +516,7 @@ mod platform { } } -#[cfg(any(windows, target_os = "fuchsia"))] +#[cfg(windows)] mod platform { use mio::Ready; diff --git a/tokio-reactor/src/lib.rs b/tokio-reactor/src/lib.rs index 74a14f704..4c4dfc218 100644 --- a/tokio-reactor/src/lib.rs +++ b/tokio-reactor/src/lib.rs @@ -712,7 +712,7 @@ impl Task { } } -#[cfg(all(unix, not(target_os = "fuchsia")))] +#[cfg(unix)] mod platform { use mio::Ready; use mio::unix::UnixReady; @@ -726,7 +726,7 @@ mod platform { } } -#[cfg(any(windows, target_os = "fuchsia"))] +#[cfg(windows)] mod platform { use mio::Ready; diff --git a/tokio-tcp/src/listener.rs b/tokio-tcp/src/listener.rs index e6f8ce3ed..1eff35567 100644 --- a/tokio-tcp/src/listener.rs +++ b/tokio-tcp/src/listener.rs @@ -234,7 +234,7 @@ impl fmt::Debug for TcpListener { } } -#[cfg(all(unix, not(target_os = "fuchsia")))] +#[cfg(unix)] mod sys { use std::os::unix::prelude::*; use super::TcpListener; diff --git a/tokio-tcp/src/stream.rs b/tokio-tcp/src/stream.rs index 0a62804b1..b68580cb2 100644 --- a/tokio-tcp/src/stream.rs +++ b/tokio-tcp/src/stream.rs @@ -717,7 +717,7 @@ impl futures2::Future for ConnectFutureState { } } -#[cfg(all(unix, not(target_os = "fuchsia")))] +#[cfg(unix)] mod sys { use std::os::unix::prelude::*; use super::TcpStream; diff --git a/tokio-udp/src/socket.rs b/tokio-udp/src/socket.rs index 0d0ea220d..aaf6b8f72 100644 --- a/tokio-udp/src/socket.rs +++ b/tokio-udp/src/socket.rs @@ -398,7 +398,7 @@ impl fmt::Debug for UdpSocket { } } -#[cfg(all(unix, not(target_os = "fuchsia")))] +#[cfg(all(unix))] mod sys { use std::os::unix::prelude::*; use super::UdpSocket;