mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Fixed deprecation warnings
This commit is contained in:
@@ -475,8 +475,8 @@ impl Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_proc_address(&self, _addr: &str) -> *const () {
|
pub fn get_proc_address(&self, _addr: &str) -> *const () {
|
||||||
let symbol_name: CFString = from_str(_addr).unwrap();
|
let symbol_name = _addr.parse::<CFString>().unwrap();
|
||||||
let framework_name: CFString = from_str("com.apple.opengl").unwrap();
|
let framework_name = "com.apple.opengl".parse::<CFString>().unwrap();
|
||||||
let framework = unsafe {
|
let framework = unsafe {
|
||||||
CFBundleGetBundleWithIdentifier(framework_name.as_concrete_TypeRef())
|
CFBundleGetBundleWithIdentifier(framework_name.as_concrete_TypeRef())
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user