aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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();