auto merge of #2485 : zwarich/servo/eliminate-copy, r=jdm

This commit is contained in:
bors-servo 2014-05-25 02:07:24 -04:00
commit 3e4b2c1c7b

View file

@ -58,13 +58,12 @@ pub enum ImageResponseMsg {
impl Eq for ImageResponseMsg { impl Eq for ImageResponseMsg {
fn eq(&self, other: &ImageResponseMsg) -> bool { fn eq(&self, other: &ImageResponseMsg) -> bool {
// FIXME: Bad copies match (self, other) {
match (self.clone(), other.clone()) { (&ImageReady(..), &ImageReady(..)) => fail!("unimplemented comparison"),
(ImageReady(..), ImageReady(..)) => fail!("unimplemented comparison"), (&ImageNotReady, &ImageNotReady) => true,
(ImageNotReady, ImageNotReady) => true, (&ImageFailed, &ImageFailed) => true,
(ImageFailed, ImageFailed) => true,
(ImageReady(..), _) | (ImageNotReady, _) | (ImageFailed, _) => false (&ImageReady(..), _) | (&ImageNotReady, _) | (&ImageFailed, _) => false
} }
} }