mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
cargo fix --edition-idioms
This commit is contained in:
parent
b1fd6237d1
commit
2012be4a8b
203 changed files with 665 additions and 1281 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue