Fixed deprecation warnings

This commit is contained in:
Patrick Horlebein 2014-12-29 13:27:24 +01:00
parent 86af6b6387
commit 1b0064f9f7

View file

@ -475,8 +475,8 @@ impl Window {
}
pub fn get_proc_address(&self, _addr: &str) -> *const () {
let symbol_name: CFString = from_str(_addr).unwrap();
let framework_name: CFString = from_str("com.apple.opengl").unwrap();
let symbol_name = _addr.parse::<CFString>().unwrap();
let framework_name = "com.apple.opengl".parse::<CFString>().unwrap();
let framework = unsafe {
CFBundleGetBundleWithIdentifier(framework_name.as_concrete_TypeRef())
};