Fixed small bug and bumped version to 0.7.10.
This commit is contained in:
parent
768c6f556f
commit
3cc79c7d31
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
|
||||
name = "irc"
|
||||
version = "0.7.9"
|
||||
version = "0.7.10"
|
||||
description = "A simple, thread-safe IRC client library."
|
||||
authors = ["Aaron Weiss <aaronweiss74@gmail.com>"]
|
||||
license = "Unlicense"
|
||||
|
|
|
@ -142,7 +142,7 @@ impl<T: IrcReader, U: IrcWriter> Connection<T, U> {
|
|||
/// Sends a message over this connection.
|
||||
#[experimental = "Design is very new."]
|
||||
#[cfg(not(feature = "encode"))]
|
||||
pub fn send<T: ToMessage>(&self, to_msg: T) -> IoResult<()> {
|
||||
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()[]));
|
||||
writer.flush()
|
||||
|
|
Loading…
Add table
Reference in a new issue