diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2023-09-11 21:16:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-11 19:16:54 +0000 |
commit | aad2dccc9c9f6b89922c07933cfa7087a8cd1ec4 (patch) | |
tree | 68dec1a9d53f4ed564843a9580fba70bf90dbef1 /components/script/layout_image.rs | |
parent | 413da4ca69d3013528c09bbaf38629a72384372d (diff) | |
download | servo-aad2dccc9c9f6b89922c07933cfa7087a8cd1ec4.tar.gz servo-aad2dccc9c9f6b89922c07933cfa7087a8cd1ec4.zip |
Strict import formatting (grouping and granularity) (#30325)
* strict imports formatting
* Reformat all imports
Diffstat (limited to 'components/script/layout_image.rs')
-rw-r--r-- | components/script/layout_image.rs | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/components/script/layout_image.rs b/components/script/layout_image.rs index 68ece467ad7..a7e1d6fa06c 100644 --- a/components/script/layout_image.rs +++ b/components/script/layout_image.rs @@ -7,6 +7,18 @@ //! no guarantee that the responsible nodes will still exist in the future if the //! layout thread holds on to them during asynchronous operations. +use std::sync::{Arc, Mutex}; + +use ipc_channel::ipc; +use ipc_channel::router::ROUTER; +use net_traits::image_cache::{ImageCache, PendingImageId}; +use net_traits::request::{Destination, RequestBuilder as FetchRequestInit}; +use net_traits::{ + FetchMetadata, FetchResponseListener, FetchResponseMsg, NetworkError, ResourceFetchTiming, + ResourceTimingType, +}; +use servo_url::ServoUrl; + use crate::dom::bindings::refcounted::Trusted; use crate::dom::bindings::reflector::DomObject; use crate::dom::bindings::root::DomRoot; @@ -15,14 +27,6 @@ use crate::dom::globalscope::GlobalScope; use crate::dom::node::{document_from_node, Node}; use crate::dom::performanceresourcetiming::InitiatorType; use crate::network_listener::{self, NetworkListener, PreInvoke, ResourceTimingListener}; -use ipc_channel::ipc; -use ipc_channel::router::ROUTER; -use net_traits::image_cache::{ImageCache, PendingImageId}; -use net_traits::request::{Destination, RequestBuilder as FetchRequestInit}; -use net_traits::{FetchMetadata, FetchResponseListener, FetchResponseMsg, NetworkError}; -use net_traits::{ResourceFetchTiming, ResourceTimingType}; -use servo_url::ServoUrl; -use std::sync::{Arc, Mutex}; struct LayoutImageContext { id: PendingImageId, |