aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-02-21 18:07:35 -0500
committerCorey Farwell <coreyf@rwell.org>2015-02-21 18:07:35 -0500
commitaccf2f3cc3b0ac11881ec8f1e225e28a8e07055d (patch)
tree71a9edfe3a599ebcbf1a127a250aca5d414b4d8c
parent424dbb29ed52b76dedfee752699635337277568c (diff)
downloadglutin-accf2f3cc3b0ac11881ec8f1e225e28a8e07055d.tar.gz
glutin-accf2f3cc3b0ac11881ec8f1e225e28a8e07055d.zip
Deref before matching
rust-guidelines encourages this
-rw-r--r--src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3798ffd..54f4b16 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -84,9 +84,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",
}
}
}