From abf8d8c5dad168a5f4f79c41200b0879726b9bde Mon Sep 17 00:00:00 2001 From: Till Hoeppner Date: Thu, 11 Jun 2015 17:23:07 +0200 Subject: Figure out that .to_owned().into() is needed, instead of .into() --- src/format/weechat3.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 - })),*/ + })), _ => () } } -- cgit v1.2.3