aboutsummaryrefslogtreecommitdiffstats
path: root/components/msg/compositor_msg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/msg/compositor_msg.rs')
-rw-r--r--components/msg/compositor_msg.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/msg/compositor_msg.rs b/components/msg/compositor_msg.rs
index 30a882c2f0a..45f4a092be4 100644
--- a/components/msg/compositor_msg.rs
+++ b/components/msg/compositor_msg.rs
@@ -113,10 +113,10 @@ pub trait ScriptListener : Clone {
layer_id: LayerId,
point: Point2D<f32>);
fn close(&self);
- fn dup(&self) -> Box<ScriptListener>;
+ fn dup(&self) -> Box<ScriptListener+'static>;
}
-impl<E, S: Encoder<E>> Encodable<S, E> for Box<ScriptListener> {
+impl<E, S: Encoder<E>> Encodable<S, E> for Box<ScriptListener+'static> {
fn encode(&self, _s: &mut S) -> Result<(), E> {
Ok(())
}