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/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server.rs') 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)); -- cgit v1.2.3