aboutsummaryrefslogtreecommitdiff
path: root/src/server.rs
diff options
context:
space:
mode:
authorJames Ravenscroft2014-12-25 16:54:29 +0000
committerJames Ravenscroft2014-12-25 16:54:29 +0000
commit7181a9824cb7bda6e10f83f0a4d11e3fd493dcbf (patch)
tree69f07266095cc33bb3c26ec98c9753ce5e361ef6 /src/server.rs
parentce4ab4d6a395bbce37531225d506552d6a910f3f (diff)
downloadirsc-7181a9824cb7bda6e10f83f0a4d11e3fd493dcbf.tar.gz
irsc-7181a9824cb7bda6e10f83f0a4d11e3fd493dcbf.tar.xz
irsc-7181a9824cb7bda6e10f83f0a4d11e3fd493dcbf.zip
Fixed casting of function pointers
Diffstat (limited to 'src/server.rs')
-rw-r--r--src/server.rs2
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))
}
}