aboutsummaryrefslogtreecommitdiffstats
path: root/components/util/cursor.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-10-12 19:40:48 -0400
committerCorey Farwell <coreyf@rwell.org>2015-10-12 20:21:49 -0400
commit20beaf5af31cb58c112cedc6bd4a2f4b89196da4 (patch)
treef2628f82f068194739b33d763b462a4da5690675 /components/util/cursor.rs
parent6303126e0c48e9c83aa7edd813079a6a360837b2 (diff)
downloadservo-20beaf5af31cb58c112cedc6bd4a2f4b89196da4.tar.gz
servo-20beaf5af31cb58c112cedc6bd4a2f4b89196da4.zip
Fix issues found by rust-clippy
Diffstat (limited to 'components/util/cursor.rs')
-rw-r--r--components/util/cursor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/util/cursor.rs b/components/util/cursor.rs
index 8e4ca9e3c1c..bda254861e2 100644
--- a/components/util/cursor.rs
+++ b/components/util/cursor.rs
@@ -26,8 +26,8 @@ macro_rules! define_cursor {
impl ToCss for Cursor {
fn to_css<W>(&self, dest: &mut W) -> ::std::fmt::Result where W: ::std::fmt::Write {
- match self {
- $( &Cursor::$variant => dest.write_str($css) ),+
+ match *self {
+ $( Cursor::$variant => dest.write_str($css) ),+
}
}
}