aboutsummaryrefslogtreecommitdiffstats
path: root/src/osx
diff options
context:
space:
mode:
authorPatrick Horlebein <patrick@ilovepatrick.de>2014-12-29 13:27:24 +0100
committerPatrick Horlebein <patrick@ilovepatrick.de>2014-12-29 13:27:24 +0100
commit1b0064f9f780ab8a53e7b5a7a33f2fd8c53aab08 (patch)
tree81f1593ed5158d3c4e812176f7bfb2acc6561c93 /src/osx
parent86af6b6387918ea93fe5ce4cae2764a1d196061e (diff)
downloadglutin-1b0064f9f780ab8a53e7b5a7a33f2fd8c53aab08.tar.gz
glutin-1b0064f9f780ab8a53e7b5a7a33f2fd8c53aab08.zip
Fixed deprecation warnings
Diffstat (limited to 'src/osx')
-rw-r--r--src/osx/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osx/mod.rs b/src/osx/mod.rs
index 59b6577..e2b9bc2 100644
--- a/src/osx/mod.rs
+++ b/src/osx/mod.rs
@@ -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())
};