From 514a08d838a7655bc9a6b7fb41624c45edb8c023 Mon Sep 17 00:00:00 2001 From: Aaron Weiss Date: Wed, 21 Jun 2017 21:52:28 -0400 Subject: [PATCH] Fixed compilation for no default features. --- src/client/server/mod.rs | 3 ++- src/client/server/utils.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/server/mod.rs b/src/client/server/mod.rs index 69651c9..995b9fd 100644 --- a/src/client/server/mod.rs +++ b/src/client/server/mod.rs @@ -14,6 +14,7 @@ use futures::stream::SplitStream; use futures::sync::mpsc; use futures::sync::oneshot; use futures::sync::mpsc::UnboundedSender; +#[cfg(feature = "ctcp")] use time; use tokio_core::reactor::Core; @@ -417,7 +418,7 @@ impl ServerState { } #[cfg(not(feature = "ctcp"))] - fn handle_ctcp(&self, _: &str, _: Vec<&str>) -> Result<()> { + fn handle_ctcp(&self, _: &str, _: Vec<&str>) -> error::Result<()> { Ok(()) } } diff --git a/src/client/server/utils.rs b/src/client/server/utils.rs index 34399bf..8640e83 100644 --- a/src/client/server/utils.rs +++ b/src/client/server/utils.rs @@ -6,6 +6,7 @@ use client::data::Command::{AUTHENTICATE, CAP, INVITE, JOIN, KICK, KILL, MODE, N use client::data::Command::{OPER, PART, PASS, PONG, PRIVMSG, QUIT, SAMODE, SANICK, TOPIC, USER}; use client::server::Server; use proto::command::CapSubCommand::{END, LS, REQ}; +#[cfg(feature = "ctcp")] use time; /// Extensions for Server capabilities that make it easier to work directly with the protocol.