aboutsummaryrefslogtreecommitdiff
path: root/src/server.rs
diff options
context:
space:
mode:
authorJames Ravenscroft2014-12-26 13:47:21 +0000
committerJames Ravenscroft2014-12-26 13:47:21 +0000
commit2ebcb68cd4c88891f42da1e5c1c29fefea947f23 (patch)
treeee18f2a6fa1def91fcaaae53ce708d60f2ad58ac /src/server.rs
parent26a8e0c20cc1a300f8d03e152c9910839ce1cd53 (diff)
downloadirsc-2ebcb68cd4c88891f42da1e5c1c29fefea947f23.tar.gz
irsc-2ebcb68cd4c88891f42da1e5c1c29fefea947f23.tar.xz
irsc-2ebcb68cd4c88891f42da1e5c1c29fefea947f23.zip
No more warnings about deprecation!
Diffstat (limited to 'src/server.rs')
-rw-r--r--src/server.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.rs b/src/server.rs
index 309ecfb..4c4479a 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -130,7 +130,7 @@ impl Server {
let event = Event {
prefix: prefix.to_owned(),
command: cmd.to_owned(),
- content: parts.iter().map(|p| p.into_string()).collect()
+ content: parts.into_iter().map(|s| s.to_owned()).collect()
};
self.events.lock().fire(&(self.clone(), event));