From accf2f3cc3b0ac11881ec8f1e225e28a8e07055d Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Sat, 21 Feb 2015 18:07:35 -0500 Subject: Deref before matching rust-guidelines encourages this --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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", } } } -- cgit v1.2.3