diff options
author | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-04-02 22:04:17 +0200 |
---|---|---|
committer | Pierre Krieger <pierre.krieger1708@gmail.com> | 2015-04-02 22:41:35 +0200 |
commit | d33c138164d069f025439f97920771f1f8c7775e (patch) | |
tree | d54b6953a9540d3b9e93c7a76ac48814be8c9773 /src/win32/make_current_guard.rs | |
parent | 2e1fe8283f82208375737674a731d2fe3c5e4539 (diff) | |
download | glutin-d33c138164d069f025439f97920771f1f8c7775e.tar.gz glutin-d33c138164d069f025439f97920771f1f8c7775e.zip |
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 { |