diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-02-21 18:07:35 -0500 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-02-21 18:07:35 -0500 |
commit | accf2f3cc3b0ac11881ec8f1e225e28a8e07055d (patch) | |
tree | 71a9edfe3a599ebcbf1a127a250aca5d414b4d8c | |
parent | 424dbb29ed52b76dedfee752699635337277568c (diff) | |
download | glutin-accf2f3cc3b0ac11881ec8f1e225e28a8e07055d.tar.gz glutin-accf2f3cc3b0ac11881ec8f1e225e28a8e07055d.zip |
Deref before matching
rust-guidelines encourages this
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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", } } } |