diff options
author | Till Hoeppner | 2015-06-28 19:01:20 +0200 |
---|---|---|
committer | Till Hoeppner | 2015-06-28 19:01:20 +0200 |
commit | 100db832f2cb1f869929032103309c64d0f6e231 (patch) | |
tree | 149d4eb31993c8bfcd643645c0dababaaa964c12 /examples/02.rs | |
parent | efaa1d0aa77d6a583f71d0cfa2787369cbf112a5 (diff) | |
download | irsc-100db832f2cb1f869929032103309c64d0f6e231.tar.gz irsc-100db832f2cb1f869929032103309c64d0f6e231.tar.xz irsc-100db832f2cb1f869929032103309c64d0f6e231.zip |
Preserve the mapped stream, instead of dropping soon
Diffstat (limited to 'examples/02.rs')
-rw-r--r-- | examples/02.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/02.rs b/examples/02.rs index 69c9d0f..ca5cfc4 100644 --- a/examples/02.rs +++ b/examples/02.rs @@ -14,7 +14,7 @@ fn main() { s.register("irsc", "irsc", "Testing for kori", None); let mut shared = s.into_shared(); - let _ = shared.commands() + let _a = shared.commands() .map(|(mut cl, msg, c)| { if let PRIVMSG(to, content) = c { let from = msg.ident().unwrap(); |