mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
cargo fix --edition-idioms
This commit is contained in:
parent
b1fd6237d1
commit
2012be4a8b
203 changed files with 665 additions and 1281 deletions
|
@ -21,7 +21,7 @@ use std::sync::{Arc, Mutex};
|
|||
|
||||
struct LayoutImageContext {
|
||||
id: PendingImageId,
|
||||
cache: Arc<ImageCache>,
|
||||
cache: Arc<dyn ImageCache>,
|
||||
}
|
||||
|
||||
impl FetchResponseListener for LayoutImageContext {
|
||||
|
@ -49,7 +49,7 @@ pub fn fetch_image_for_layout(
|
|||
url: ServoUrl,
|
||||
node: &Node,
|
||||
id: PendingImageId,
|
||||
cache: Arc<ImageCache>,
|
||||
cache: Arc<dyn ImageCache>,
|
||||
) {
|
||||
let context = Arc::new(Mutex::new(LayoutImageContext {
|
||||
id: id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue