diff options
Diffstat (limited to 'examples/01.rs')
-rw-r--r-- | examples/01.rs | 2 |
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(); |