Removed warning when no-default-features is used.

This commit is contained in:
Aaron Weiss 2015-02-22 12:12:18 -05:00
parent 6404bef80a
commit c997556501

View file

@ -147,7 +147,7 @@ impl<T: IrcReader, U: IrcWriter> Connection<T, U> {
#[cfg(not(feature = "encode"))]
pub fn send<M: ToMessage>(&self, to_msg: M) -> IoResult<()> {
let mut writer = self.writer.lock().unwrap();
try!(writer.write_str(&to_msg.to_message().into_string()[]));
try!(writer.write_str(&to_msg.to_message().into_string()));
writer.flush()
}