diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2018-11-01 21:43:04 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2018-11-08 09:28:00 +0100 |
commit | 2012be4a8bd97f2fd69f986c8fffb1af1eec21dc (patch) | |
tree | c9f1ef91146253f72987cb1436866523880965e0 /components/layout/context.rs | |
parent | b1fd6237d1304f3d57abdafd3e6e738c1ece9f83 (diff) | |
download | servo-2012be4a8bd97f2fd69f986c8fffb1af1eec21dc.tar.gz servo-2012be4a8bd97f2fd69f986c8fffb1af1eec21dc.zip |
`cargo fix --edition-idioms`
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r-- | components/layout/context.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs index 1ab4637cd8a..08530e74a5c 100644 --- a/components/layout/context.rs +++ b/components/layout/context.rs @@ -64,7 +64,7 @@ pub struct LayoutContext<'a> { pub style_context: SharedStyleContext<'a>, /// Reference to the script thread image cache. - pub image_cache: Arc<ImageCache>, + pub image_cache: Arc<dyn ImageCache>, /// Interface to the font cache thread. pub font_cache_thread: Mutex<FontCacheThread>, @@ -77,7 +77,7 @@ pub struct LayoutContext<'a> { >, /// Paint worklets - pub registered_painters: &'a RegisteredPainters, + pub registered_painters: &'a dyn RegisteredPainters, /// A list of in-progress image loads to be shared with the script thread. /// A None value means that this layout was not initiated by the script thread. @@ -197,5 +197,5 @@ pub trait RegisteredPainter: RegisteredSpeculativePainter + Painter {} /// A set of registered painters pub trait RegisteredPainters: Sync { /// Look up a painter - fn get(&self, name: &Atom) -> Option<&RegisteredPainter>; + fn get(&self, name: &Atom) -> Option<&dyn RegisteredPainter>; } |