diff options
Diffstat (limited to 'src/server.rs')
-rw-r--r-- | src/server.rs | 2 |
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)); |