diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-02-22 08:40:42 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-02-22 08:40:42 +0100 |
commit | 07a584fd28e129be9b20bdcb7f3cbba5cd211d15 (patch) | |
tree | f20dbcf83b0f9e39f0a9549bb8a5b52d1dd00410 /src/lib.rs | |
parent | d6ecbe6bfe745b8865a9fcc9ab2a70585d327b8e (diff) | |
parent | 5ff649e5db99cd2ad4c8b22f5894b4283c35b6ea (diff) | |
download | glutin-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.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", } } } |