diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-04-03 07:52:12 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-04-03 07:52:12 +0200 |
commit | 93f4581c08b1b25852527223a6f3608870532a87 (patch) | |
tree | 5323fa00d2ea700dd64dfd2dff36ac169ccac163 /src/win32/make_current_guard.rs | |
parent | 6c990ae48866e6110600aadcb3a0d8850deab42b (diff) | |
parent | d33c138164d069f025439f97920771f1f8c7775e (diff) | |
download | glutin-93f4581c08b1b25852527223a6f3608870532a87.tar.gz glutin-93f4581c08b1b25852527223a6f3608870532a87.zip |
Merge pull request #348 from tomaka/rustup
Rustup
Diffstat (limited to 'src/win32/make_current_guard.rs')
-rw-r--r-- | src/win32/make_current_guard.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32/make_current_guard.rs b/src/win32/make_current_guard.rs index d6bcc8e..2435454 100644 --- a/src/win32/make_current_guard.rs +++ b/src/win32/make_current_guard.rs @@ -1,5 +1,5 @@ use std::marker::PhantomData; -use std::os; +use std::io; use libc; use winapi; @@ -30,7 +30,7 @@ impl<'a, 'b> CurrentContextGuard<'a, 'b> { if result == 0 { return Err(CreationError::OsError(format!("wglMakeCurrent function failed: {}", - os::error_string(os::errno())))); + format!("{}", io::Error::last_os_error())))); } Ok(CurrentContextGuard { |