Fixed compilation for no default features.
This commit is contained in:
parent
86e224b8aa
commit
514a08d838
2 changed files with 3 additions and 1 deletions
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue