Fixed compilation for no default features.

This commit is contained in:
Aaron Weiss 2017-06-21 21:52:28 -04:00
parent 86e224b8aa
commit 514a08d838
No known key found for this signature in database
GPG key ID: 0237035D9BF03AE2
2 changed files with 3 additions and 1 deletions

View file

@ -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(())
}
}

View file

@ -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.