diff --git a/examples/defaults.rs b/examples/defaults.rs index a6cb52e4..39c139e2 100644 --- a/examples/defaults.rs +++ b/examples/defaults.rs @@ -55,7 +55,7 @@ fn main() { ]; for &(param, ext, name) in gl_params.iter() { - if ext.map_default(true, |s| { + if ext.map_or(true, |s| { glfw::extension_supported(s) }) { let value = 0; diff --git a/src/lib.rs b/src/lib.rs index 28eadbab..fb8c2696 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -360,7 +360,7 @@ impl Monitor { unsafe { ffi::glfwGetPrimaryMonitor() .to_option() - .map_default(Err(()), + .map_or(Err(()), |ptr| Ok(Monitor { ptr: ptr })) } }