From c6bb1cb9d553c13a20dace3e32b9643c433caa1e Mon Sep 17 00:00:00 2001 From: Keith Yeung Date: Sat, 21 Oct 2017 06:39:23 -0700 Subject: Merge request type and destination --- components/script/stylesheet_loader.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'components/script/stylesheet_loader.rs') diff --git a/components/script/stylesheet_loader.rs b/components/script/stylesheet_loader.rs index 3444cb0af02..094eff5b022 100644 --- a/components/script/stylesheet_loader.rs +++ b/components/script/stylesheet_loader.rs @@ -21,7 +21,7 @@ use hyper_serde::Serde; use ipc_channel::ipc; use ipc_channel::router::ROUTER; use net_traits::{FetchResponseListener, FetchMetadata, FilteredMetadata, Metadata, NetworkError, ReferrerPolicy}; -use net_traits::request::{CorsSettings, CredentialsMode, Destination, RequestInit, RequestMode, Type as RequestType}; +use net_traits::request::{CorsSettings, CredentialsMode, Destination, RequestInit, RequestMode}; use network_listener::{NetworkListener, PreInvoke}; use parking_lot::RwLock; use servo_arc::Arc; @@ -247,7 +247,6 @@ impl<'a> StylesheetLoader<'a> { let request = RequestInit { url: url.clone(), - type_: RequestType::Style, destination: Destination::Style, // https://html.spec.whatwg.org/multipage/#create-a-potential-cors-request // Step 1 -- cgit v1.2.3