mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 22:30:04 -04:00
Rustup
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user