diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-03-11 23:21:02 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-03-11 23:21:02 -0400 |
commit | 6bafd4108d3a278b4e8a6f5ea6faa66a1aea1ed2 (patch) | |
tree | 1e47bad7b3279850cf2be452ebf773b15b95103d | |
parent | 4dc14280a8f192961a46e70267cf7eae78416582 (diff) | |
download | glutin-6bafd4108d3a278b4e8a6f5ea6faa66a1aea1ed2.tar.gz glutin-6bafd4108d3a278b4e8a6f5ea6faa66a1aea1ed2.zip |
Stop using deprecated os::getenv function
-rw-r--r-- | build.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2,12 +2,12 @@ extern crate gl_generator; extern crate khronos_api; -use std::os; +use std::env; use std::old_io::File; fn main() { - let target = os::getenv("TARGET").unwrap(); - let dest = Path::new(os::getenv("OUT_DIR").unwrap()); + let target = env::var("TARGET").unwrap(); + let dest = Path::new(env::var("OUT_DIR").unwrap()); if target.contains("windows") { let mut file = File::create(&dest.join("wgl_bindings.rs")).unwrap(); |