diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-09-02 12:58:14 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-09-02 12:58:14 -0400 |
commit | 78aa2bc558e9f568179bee0a067c0f20125e6f25 (patch) | |
tree | bcfc3ecc69a3778343dceb88b4e77b1a641c11ea /src | |
parent | f8efb4da8dc8e7a4b63b260a6b7074ddaa8bb33a (diff) | |
download | rusty-irc-78aa2bc558e9f568179bee0a067c0f20125e6f25.tar.gz rusty-irc-78aa2bc558e9f568179bee0a067c0f20125e6f25.zip |
s/Share/Sync/
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -31,7 +31,7 @@ pub struct IrcClient<T> { output_chan: Sender<Message>, } -impl<T: Iterator<String>+Send+Share> Clone for IrcClient<T> { +impl<T: Iterator<String>+Send+Sync> Clone for IrcClient<T> { fn clone(&self) -> IrcClient<T> { IrcClient { state: self.state.clone(), @@ -41,7 +41,7 @@ impl<T: Iterator<String>+Send+Share> Clone for IrcClient<T> { } } -impl<T: Iterator<String>+Send+Share> IrcClient<T> { +impl<T: Iterator<String>+Send+Sync> IrcClient<T> { pub fn new(config: ClientConfig<T>, host: &str, port: u16, msg_chan: Sender<Message>) -> IoResult<IrcClient<T>> { let ClientConfig { mut nicks, username, real_name } = config; let stream = try!(TcpStream::connect(host, port)); |