diff options
author | Till Hoeppner | 2015-04-18 15:12:41 +0200 |
---|---|---|
committer | Till Hoeppner | 2015-04-18 15:12:41 +0200 |
commit | 3483b65e9173d9ef7ea709de898b3a7866045fbd (patch) | |
tree | 3c51860688f8c963e71d2ff372ec3c343ca466a8 /src/message.rs | |
parent | a8c80253d6361728db95e6a5640a91a341ad4ea5 (diff) | |
download | irsc-3483b65e9173d9ef7ea709de898b3a7866045fbd.tar.gz irsc-3483b65e9173d9ef7ea709de898b3a7866045fbd.tar.xz irsc-3483b65e9173d9ef7ea709de898b3a7866045fbd.zip |
Make tests/examples compile, not work though
Diffstat (limited to 'src/message.rs')
-rw-r--r-- | src/message.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/message.rs b/src/message.rs index dfe7f29..fd77aef 100644 --- a/src/message.rs +++ b/src/message.rs @@ -1189,7 +1189,7 @@ mod test { Some(Cow::Owned("*** Looking up your hostname...".to_owned())), MsgType::Irc ); - assert_eq!(a.parse(), Some(a2.clone())); + assert_eq!(a.parse::<Message>().unwrap(), a2.clone()); assert_eq!(a2.to_string(), a); let b = ":d PRIVMSG You :\u{1}ACTION sends you funny pictures of cats!\u{1}"; @@ -1200,7 +1200,7 @@ mod test { Some(Cow::Owned("\u{1}ACTION sends you funny pictures of cats!\u{1}".to_owned())), MsgType::Ctcp ); - assert_eq!(b.parse(), Some(b2.clone())); + assert_eq!(b.parse::<Message>().unwrap(), b2.clone()); assert_eq!(b2.to_string(), b); } |