Removed useless lifetime parameter from Bot trait.

This commit is contained in:
Aaron Weiss 2014-10-20 02:34:58 -04:00
parent 67a087cab3
commit f43634f58e
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ impl<'a> IrcBot<'a, BufferedWriter<TcpStream>, BufferedReader<TcpStream>> {
} }
} }
impl<'a, T, U> Bot<'a> for IrcBot<'a, T, U> where T: IrcWriter, U: IrcReader { impl<'a, T, U> Bot for IrcBot<'a, T, U> where T: IrcWriter, U: IrcReader {
fn send_nick(&self, nick: &str) -> IoResult<()> { fn send_nick(&self, nick: &str) -> IoResult<()> {
self.conn.send(Message::new(None, "NICK", [nick])) self.conn.send(Message::new(None, "NICK", [nick]))
} }

View file

@ -10,7 +10,7 @@ pub mod bot;
pub mod conn; pub mod conn;
pub mod data; pub mod data;
pub trait Bot<'a> { pub trait Bot {
fn send_nick(&self, nick: &str) -> IoResult<()>; fn send_nick(&self, nick: &str) -> IoResult<()>;
fn send_user(&self, username: &str, real_name: &str) -> IoResult<()>; fn send_user(&self, username: &str, real_name: &str) -> IoResult<()>;
fn send_join(&self, chan: &str) -> IoResult<()>; fn send_join(&self, chan: &str) -> IoResult<()>;