aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3af5165..cab49c5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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));