From 2ebcb68cd4c88891f42da1e5c1c29fefea947f23 Mon Sep 17 00:00:00 2001 From: James Ravenscroft Date: Fri, 26 Dec 2014 13:47:21 +0000 Subject: No more warnings about deprecation! --- src/event.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/event.rs') diff --git a/src/event.rs b/src/event.rs index aef34f9..b8e9743 100644 --- a/src/event.rs +++ b/src/event.rs @@ -1,5 +1,7 @@ use ident::Ident; +use std::borrow::ToOwned; + #[deriving(Clone)] pub struct Event { pub prefix: String, @@ -17,7 +19,7 @@ pub const PRIVMSG: &'static str = "PRIVMSG"; fn join(v: Vec, from: uint) -> String { let mut msg = if v[from].chars().next().unwrap() == ':' { - v[from][][1..].into_string() + v[from][][1..].to_owned() } else { v[from].clone() }; for m in v.iter().skip(from + 1) { msg.push_str(" "); -- cgit v1.2.3