Skip to content

Commit

Permalink
Merge pull request PistonDevelopers#296 from MaikKlein/master
Browse files Browse the repository at this point in the history
closure inference fix for the current nightly
  • Loading branch information
csherratt committed Mar 1, 2015
2 parents addd417 + 742d509 commit 523582f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/callbacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub mod error {
callback!(
type Args = (error: ::Error, description: String);
type Callback = ErrorCallback;
let ext_set = |&: cb| unsafe { ::ffi::glfwSetErrorCallback(cb) };
let ext_set = |cb| unsafe { ::ffi::glfwSetErrorCallback(cb) };
fn callback(error: c_int, description: *const c_char) {
(mem::transmute(error), ::string_from_c_str(description))
}
Expand All @@ -91,7 +91,7 @@ pub mod monitor {
callback!(
type Args = (monitor: ::Monitor, event: ::MonitorEvent);
type Callback = MonitorCallback;
let ext_set = |&: cb| unsafe { ::ffi::glfwSetMonitorCallback(cb) };
let ext_set = |cb| unsafe { ::ffi::glfwSetMonitorCallback(cb) };
fn callback(monitor: *mut ::ffi::GLFWmonitor, event: c_int) {
let monitor = ::Monitor {
ptr: monitor
Expand Down

0 comments on commit 523582f

Please sign in to comment.