diff options
Diffstat (limited to 'components/gfx_traits/lib.rs')
-rw-r--r-- | components/gfx_traits/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/gfx_traits/lib.rs b/components/gfx_traits/lib.rs index 6f5abcb1963..ed78a9c74b0 100644 --- a/components/gfx_traits/lib.rs +++ b/components/gfx_traits/lib.rs @@ -34,6 +34,12 @@ pub enum PaintMsg { Failure(Failure), } +impl From<Failure> for PaintMsg { + fn from(failure: Failure) -> PaintMsg { + PaintMsg::Failure(failure) + } +} + #[derive(Clone, Copy, Debug, PartialEq)] pub enum LayerKind { NoTransform, |