diff options
author | Till Höppner | 2014-12-26 15:07:47 +0100 |
---|---|---|
committer | Till Höppner | 2014-12-26 15:07:47 +0100 |
commit | d8c9a734419fdfb3ef54bba467f899e09533b3c6 (patch) | |
tree | ee18f2a6fa1def91fcaaae53ce708d60f2ad58ac /src/event.rs | |
parent | 6ed12a0993d56330bb008adc86bfb5ebe4320583 (diff) | |
parent | 2ebcb68cd4c88891f42da1e5c1c29fefea947f23 (diff) | |
download | irsc-d8c9a734419fdfb3ef54bba467f899e09533b3c6.tar.gz irsc-d8c9a734419fdfb3ef54bba467f899e09533b3c6.tar.xz irsc-d8c9a734419fdfb3ef54bba467f899e09533b3c6.zip |
Merge pull request #1 from ravenscroftj/master
Fixed build for irsc
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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<String>, 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(" "); |