diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-09-08 13:05:25 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-09-08 13:05:25 -0400 |
commit | 6bf08295188b48c2c0a141546fc67f1457f40961 (patch) | |
tree | 0090f7af42c39380a552301153913ac2b3ed7ad9 /examples/client.rs | |
parent | e41c5fa768cd006fc35ae14d7f6dec7912462161 (diff) | |
download | rust-irc-6bf08295188b48c2c0a141546fc67f1457f40961.tar.gz rust-irc-6bf08295188b48c2c0a141546fc67f1457f40961.zip |
pass &Message around, since Message isn't copyable
Diffstat (limited to 'examples/client.rs')
-rw-r--r-- | examples/client.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/client.rs b/examples/client.rs index 4da1220..ab1ef42 100644 --- a/examples/client.rs +++ b/examples/client.rs @@ -28,7 +28,7 @@ impl irc::Client for ExampleClient { } } - fn on_message (client: &mut ExampleClient, m: irc::Message) { + fn on_message (client: &mut ExampleClient, m: &irc::Message) { print!("{}", m.to_protocol_string()); match *m.message_type() { Ping => { |