diff --git a/src/client/conn.rs b/src/client/conn.rs index 9ea9ea3..bbc22ea 100644 --- a/src/client/conn.rs +++ b/src/client/conn.rs @@ -147,7 +147,7 @@ impl Connection { #[cfg(not(feature = "encode"))] pub fn send(&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() }