aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-02-22 08:40:42 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-02-22 08:40:42 +0100
commit07a584fd28e129be9b20bdcb7f3cbba5cd211d15 (patch)
treef20dbcf83b0f9e39f0a9549bb8a5b52d1dd00410 /src/lib.rs
parentd6ecbe6bfe745b8865a9fcc9ab2a70585d327b8e (diff)
parent5ff649e5db99cd2ad4c8b22f5894b4283c35b6ea (diff)
downloadglutin-07a584fd28e129be9b20bdcb7f3cbba5cd211d15.tar.gz
glutin-07a584fd28e129be9b20bdcb7f3cbba5cd211d15.zip
Merge pull request #290 from frewsxcv/cleanup
Various cleanup commits
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",
}
}
}