diff options
Diffstat (limited to 'src/server.rs')
-rw-r--r-- | src/server.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.rs b/src/server.rs index 343cdee..7504658 100644 --- a/src/server.rs +++ b/src/server.rs @@ -30,7 +30,7 @@ impl Server { stream: Arc::new(Mutex::new(None)), events: { let mut c = Callback::new(); - c.register(&Server::handle_event); + c.register(&(Server::handle_event as fn((Server,Event)))); Arc::new(Mutex::new(c)) } } |