Removed warning when no-default-features is used.
This commit is contained in:
parent
6404bef80a
commit
c997556501
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ impl<T: IrcReader, U: IrcWriter> Connection<T, U> {
|
||||||
#[cfg(not(feature = "encode"))]
|
#[cfg(not(feature = "encode"))]
|
||||||
pub fn send<M: ToMessage>(&self, to_msg: M) -> IoResult<()> {
|
pub fn send<M: ToMessage>(&self, to_msg: M) -> IoResult<()> {
|
||||||
let mut writer = self.writer.lock().unwrap();
|
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()
|
writer.flush()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue