diff options
author | Rosemary Ajayi <okhuomonajayi54@gmail.com> | 2024-03-18 10:05:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 10:05:18 +0000 |
commit | 3ac0ab2e4e711a3097d50c699f3572091fa03fd2 (patch) | |
tree | feee6ed79728bc2a2b7ddb3505d7a27e9f0f782d /components/script/layout_image.rs | |
parent | 4bca55e27ad38685067986c8f478bae1b214b43c (diff) | |
download | servo-3ac0ab2e4e711a3097d50c699f3572091fa03fd2.tar.gz servo-3ac0ab2e4e711a3097d50c699f3572091fa03fd2.zip |
clippy: Fix some warnings in the `script` crate (#31719)
* Fix InlineFormatting error
* BoxFrament
* fix clippy error
* clippy:fix clipy errors
* fix clippy errors
* fix clippy errors
* fix clippy errors
* Remove changes to `layout_2020`
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/layout_image.rs')
-rw-r--r-- | components/script/layout_image.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/layout_image.rs b/components/script/layout_image.rs index c9fed246773..83454dd8bba 100644 --- a/components/script/layout_image.rs +++ b/components/script/layout_image.rs @@ -87,8 +87,8 @@ pub fn fetch_image_for_layout( let document = document_from_node(node); let context = Arc::new(Mutex::new(LayoutImageContext { - id: id, - cache: cache, + id, + cache, resource_timing: ResourceFetchTiming::new(ResourceTimingType::Resource), doc: Trusted::new(&document), url: url.clone(), |