aboutsummaryrefslogtreecommitdiff
path: root/examples/01.rs
diff options
context:
space:
mode:
authorTill Höppner2014-12-26 15:07:47 +0100
committerTill Höppner2014-12-26 15:07:47 +0100
commitd8c9a734419fdfb3ef54bba467f899e09533b3c6 (patch)
treeee18f2a6fa1def91fcaaae53ce708d60f2ad58ac /examples/01.rs
parent6ed12a0993d56330bb008adc86bfb5ebe4320583 (diff)
parent2ebcb68cd4c88891f42da1e5c1c29fefea947f23 (diff)
downloadirsc-d8c9a734419fdfb3ef54bba467f899e09533b3c6.tar.gz
irsc-d8c9a734419fdfb3ef54bba467f899e09533b3c6.tar.xz
irsc-d8c9a734419fdfb3ef54bba467f899e09533b3c6.zip
Merge pull request #1 from ravenscroftj/master
Fixed build for irsc
Diffstat (limited to 'examples/01.rs')
-rw-r--r--examples/01.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/01.rs b/examples/01.rs
index 9756119..0bf51f5 100644
--- a/examples/01.rs
+++ b/examples/01.rs
@@ -31,7 +31,7 @@ fn main() {
s.msg("flan3002", "Hey, I'm your example bot!").unwrap();
- s.events.lock().register(&callback);
+ s.events.lock().register(&(callback as fn((Server,Event))));
// Dedicate this thread to listening and event processing
s.listen().unwrap();