diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2012-09-20 15:04:00 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2012-09-20 15:04:00 -0700 |
commit | ff6cefb798246cd82d603b7bce89280812affe3c (patch) | |
tree | 434554e74fa510033457ba82cef3118553aaf7ca /src/servo/gfx/surface.rs | |
parent | f3a8253bc8728e67f88334ef0c7d4b0590557d28 (diff) | |
download | servo-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.rs | 6 |
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); } } |