aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3798ffd..4ab577a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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",
}
}
}