Fixed compilation with no default features and bumped version to 0.7.11.

This commit is contained in:
Aaron Weiss 2015-01-09 19:24:02 -05:00
parent 3cc79c7d31
commit ef2dc880e2
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
[package] [package]
name = "irc" name = "irc"
version = "0.7.10" version = "0.7.11"
description = "A simple, thread-safe IRC client library." description = "A simple, thread-safe IRC client library."
authors = ["Aaron Weiss <aaronweiss74@gmail.com>"] authors = ["Aaron Weiss <aaronweiss74@gmail.com>"]
license = "Unlicense" license = "Unlicense"

View file

@ -1,6 +1,6 @@
//! Thread-safe connections on IrcStreams. //! Thread-safe connections on IrcStreams.
#![stable] #![stable]
use std::error::Error; #[cfg(feature = "ssl")] use std::error::Error;
use std::io::{BufferedReader, BufferedWriter, IoResult, TcpStream}; use std::io::{BufferedReader, BufferedWriter, IoResult, TcpStream};
#[cfg(any(feature = "encode", feature = "ssl"))] use std::io::{IoError, IoErrorKind}; #[cfg(any(feature = "encode", feature = "ssl"))] use std::io::{IoError, IoErrorKind};
use std::sync::{Mutex, MutexGuard}; use std::sync::{Mutex, MutexGuard};
@ -144,7 +144,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()
} }