aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Hoeppner2015-06-11 17:23:07 +0200
committerTill Hoeppner2015-06-11 17:23:07 +0200
commitabf8d8c5dad168a5f4f79c41200b0879726b9bde (patch)
tree1b0d75f45c43f6ff232c0721fddec94611fb3dc6
parentf429b909db8624d9202e0e43c9732e957a7e93bc (diff)
downloadilc-abf8d8c5dad168a5f4f79c41200b0879726b9bde.tar.gz
ilc-abf8d8c5dad168a5f4f79c41200b0879726b9bde.tar.xz
ilc-abf8d8c5dad168a5f4f79c41200b0879726b9bde.zip
Figure out that .to_owned().into() is needed, instead of .into()
-rw-r--r--src/format/weechat3.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/format/weechat3.rs b/src/format/weechat3.rs
index 164afc4..fcb85dd 100644
--- a/src/format/weechat3.rs
+++ b/src/format/weechat3.rs
@@ -113,21 +113,21 @@ impl<'a, R: 'a> Iterator for Iter<'a, R> where R: BufRead {
if sp.clone().is_empty()
=> return Some(Ok(Event {
ty: Type::Action {
- from: nick.clone().into_cow(),
+ from: nick.to_owned().into(),
content: rejoin(msg, &split_tokens[5..]),
},
time: parse_time(&self.context, &date.clone().to_owned(), &time.clone().to_owned()),
channel: None
})),
- /*[date, time, nick, msg..]
+ [date, time, nick, msg..]
=> return Some(Ok(Event {
ty: Type::Msg {
- from: nick.into(),
+ from: nick.to_owned().into(),
content: rejoin(msg, &split_tokens[3..]),
},
time: parse_time(&self.context, &date, &time),
channel: None
- })),*/
+ })),
_ => ()
}
}