aboutsummaryrefslogtreecommitdiffstats
path: root/src/servo/gfx/surface.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-09-20 15:04:00 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-09-20 15:04:00 -0700
commitff6cefb798246cd82d603b7bce89280812affe3c (patch)
tree434554e74fa510033457ba82cef3118553aaf7ca /src/servo/gfx/surface.rs
parentf3a8253bc8728e67f88334ef0c7d4b0590557d28 (diff)
downloadservo-ff6cefb798246cd82d603b7bce89280812affe3c.tar.gz
servo-ff6cefb798246cd82d603b7bce89280812affe3c.zip
Update for language changes
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);
}
}