cargo fix --edition-idioms

This commit is contained in:
Simon Sapin 2018-11-01 21:43:04 +01:00
parent b1fd6237d1
commit 2012be4a8b
203 changed files with 665 additions and 1281 deletions

View file

@ -131,7 +131,7 @@ impl PaintWorkletGlobalScope {
unsafe { PaintWorkletGlobalScopeBinding::Wrap(runtime.cx(), global) }
}
pub fn image_cache(&self) -> Arc<ImageCache> {
pub fn image_cache(&self) -> Arc<dyn ImageCache> {
self.image_cache.clone()
}
@ -396,7 +396,7 @@ impl PaintWorkletGlobalScope {
}
}
fn painter(&self, name: Atom) -> Box<Painter> {
fn painter(&self, name: Atom) -> Box<dyn Painter> {
// Rather annoyingly we have to use a mutex here to make the painter Sync.
struct WorkletPainter {
name: Atom,