Fixed compilation with no default features and bumped version to 0.7.11.
This commit is contained in:
parent
3cc79c7d31
commit
ef2dc880e2
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
|
||||
name = "irc"
|
||||
version = "0.7.10"
|
||||
version = "0.7.11"
|
||||
description = "A simple, thread-safe IRC client library."
|
||||
authors = ["Aaron Weiss <aaronweiss74@gmail.com>"]
|
||||
license = "Unlicense"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! Thread-safe connections on IrcStreams.
|
||||
#![stable]
|
||||
use std::error::Error;
|
||||
#[cfg(feature = "ssl")] use std::error::Error;
|
||||
use std::io::{BufferedReader, BufferedWriter, IoResult, TcpStream};
|
||||
#[cfg(any(feature = "encode", feature = "ssl"))] use std::io::{IoError, IoErrorKind};
|
||||
use std::sync::{Mutex, MutexGuard};
|
||||
|
@ -144,7 +144,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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue