diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,6 +1,5 @@ -#![feature(unsafe_destructor)] +#![feature(unsafe_destructor,core,std_misc)] #![unstable] -#![allow(unstable)] //! The purpose of this library is to provide an OpenGL context on as many //! platforms as possible. @@ -84,9 +83,9 @@ pub enum CreationError { impl CreationError { fn to_string(&self) -> &str { - match self { - &CreationError::OsError(ref text) => text.as_slice(), - &CreationError::NotSupported => "Some of the requested attributes are not supported", + match *self { + CreationError::OsError(ref text) => text.as_slice(), + CreationError::NotSupported => "Some of the requested attributes are not supported", } } } |