aboutsummaryrefslogtreecommitdiffstats
path: root/src/servo/gfx/surface.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/servo/gfx/surface.rs')
-rw-r--r--src/servo/gfx/surface.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/servo/gfx/surface.rs b/src/servo/gfx/surface.rs
index a5212d03791..030522adbe8 100644
--- a/src/servo/gfx/surface.rs
+++ b/src/servo/gfx/surface.rs
@@ -6,12 +6,12 @@ enum format {
}
impl format: cmp::Eq {
- pure fn eq(&&other: format) -> bool {
- match (self, other) {
+ pure fn eq(other: &format) -> bool {
+ match (self, *other) {
(fo_rgba_8888, fo_rgba_8888) => true,
}
}
- pure fn ne(&&other: format) -> bool {
+ pure fn ne(other: &format) -> bool {
return !self.eq(other);
}
}