diff options
Diffstat (limited to 'components/canvas_traits/lib.rs')
-rw-r--r-- | components/canvas_traits/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/canvas_traits/lib.rs b/components/canvas_traits/lib.rs index 38da38ae6e1..41115b39db1 100644 --- a/components/canvas_traits/lib.rs +++ b/components/canvas_traits/lib.rs @@ -66,13 +66,13 @@ pub enum FromPaintMsg { } impl Serialize for FromPaintMsg { - fn serialize<S>(&self, _: &mut S) -> Result<(),S::Error> where S: Serializer { + fn serialize<S>(&self, _: &mut S) -> Result<(), S::Error> where S: Serializer { panic!("can't serialize a `FromPaintMsg`!") } } impl Deserialize for FromPaintMsg { - fn deserialize<D>(_: &mut D) -> Result<FromPaintMsg,D::Error> where D: Deserializer { + fn deserialize<D>(_: &mut D) -> Result<FromPaintMsg, D::Error> where D: Deserializer { panic!("can't deserialize a `FromPaintMsg`!") } } |