From 3274cf110710d834e0afcc3668a60d0ef0802b00 Mon Sep 17 00:00:00 2001 From: Aaron Weiss Date: Thu, 26 Feb 2015 21:52:42 -0500 Subject: [PATCH] Changed from split_str to split. --- src/client/server/mod.rs | 4 ++-- src/client/server/utils.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/server/mod.rs b/src/client/server/mod.rs index e6b6bea..5c6a772 100644 --- a/src/client/server/mod.rs +++ b/src/client/server/mod.rs @@ -139,7 +139,7 @@ impl IrcServer { if cfg!(not(feature = "nochanlists")) { if let Some(users) = msg.suffix.clone() { if let [_, _, ref chan] = &msg.args[..] { - for user in users.split_str(" ") { + for user in users.split(" ") { if match self.chanlists.lock().unwrap().get_mut(chan) { Some(vec) => { vec.push(User::new(user)); false }, None => true, @@ -228,7 +228,7 @@ impl IrcServer { } else { msg.len() }; - msg[1..end].split_str(" ").collect() + msg[1..end].split(" ").collect() }; match tokens[0] { "FINGER" => self.send_ctcp_internal(resp, &format!("FINGER :{} ({})", diff --git a/src/client/server/utils.rs b/src/client/server/utils.rs index 7db7a4f..25c01db 100644 --- a/src/client/server/utils.rs +++ b/src/client/server/utils.rs @@ -49,7 +49,7 @@ pub trait ServerExt<'a, T, U>: Server<'a, T, U> { /// Sends a message to the specified target. #[stable] fn send_privmsg(&self, target: &str, message: &str) -> IoResult<()> { - for line in message.split_str("\r\n") { + for line in message.split("\r\n") { try!(self.send(PRIVMSG(target.to_owned(), line.to_owned()))) } Ok(()) @@ -58,7 +58,7 @@ pub trait ServerExt<'a, T, U>: Server<'a, T, U> { /// Sends a notice to the specified target. #[stable] fn send_notice(&self, target: &str, message: &str) -> IoResult<()> { - for line in message.split_str("\r\n") { + for line in message.split("\r\n") { try!(self.send(NOTICE(target.to_owned(), line.to_owned()))) } Ok(())