diff options
author | James Ravenscroft | 2014-12-26 13:28:56 +0000 |
---|---|---|
committer | James Ravenscroft | 2014-12-26 13:28:56 +0000 |
commit | 26a8e0c20cc1a300f8d03e152c9910839ce1cd53 (patch) | |
tree | 359daddc40ae855ff5eaaab24101a1e73fc01b6b /src/server.rs | |
parent | 8d42ad9822e7e4b9e595bb2bd587a5da0db8ce9a (diff) | |
download | irsc-26a8e0c20cc1a300f8d03e152c9910839ce1cd53.tar.gz irsc-26a8e0c20cc1a300f8d03e152c9910839ce1cd53.tar.xz irsc-26a8e0c20cc1a300f8d03e152c9910839ce1cd53.zip |
Put examples back to how they were before and removed some into_string deprecated calls
Diffstat (limited to 'src/server.rs')
-rw-r--r-- | src/server.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server.rs b/src/server.rs index 7504658..309ecfb 100644 --- a/src/server.rs +++ b/src/server.rs @@ -7,6 +7,8 @@ use std::io::{ use std::sync::Arc; use std::sync::Mutex; +use std::borrow::ToOwned; + use callback::Callback; use event; use event::Event; @@ -126,8 +128,8 @@ impl Server { let cmd = parts.remove(0).unwrap(); let event = Event { - prefix: prefix.into_string(), - command: cmd.into_string(), + prefix: prefix.to_owned(), + command: cmd.to_owned(), content: parts.iter().map(|p| p.into_string()).collect() }; |