diff options
author | Corey Farwell <coreyf@rwell.org> | 2016-07-02 14:53:53 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2016-07-02 17:12:46 -0400 |
commit | 6c02a576cf5b73b9f70ee357c3524524f83773ec (patch) | |
tree | a881330691a3960ed60c9f488958b360f76bdf9e /components/net/data_loader.rs | |
parent | 749fe986aaa6aa67ed0ffa063eba09e605411f66 (diff) | |
download | servo-6c02a576cf5b73b9f70ee357c3524524f83773ec.tar.gz servo-6c02a576cf5b73b9f70ee357c3524524f83773ec.zip |
Rename `MIMEClassifier` to match Rust acronym naming conventions.
e.g. `std::net::TcpStream`
Diffstat (limited to 'components/net/data_loader.rs')
-rw-r--r-- | components/net/data_loader.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/net/data_loader.rs b/components/net/data_loader.rs index 4e331747c21..d81cec9a7e0 100644 --- a/components/net/data_loader.rs +++ b/components/net/data_loader.rs @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use hyper::mime::{Mime, TopLevel, SubLevel, Attr, Value}; -use mime_classifier::MIMEClassifier; +use mime_classifier::MimeClassifier; use net_traits::LoadConsumer; use net_traits::ProgressMsg::{Payload, Done}; use net_traits::{LoadData, Metadata, NetworkError}; @@ -15,7 +15,7 @@ use url::{Position, Url}; pub fn factory(load_data: LoadData, senders: LoadConsumer, - classifier: Arc<MIMEClassifier>, + classifier: Arc<MimeClassifier>, cancel_listener: CancellationListener) { // NB: we don't spawn a new thread. // Hypothesis: data URLs are too small for parallel base64 etc. to be worth it. @@ -72,7 +72,7 @@ pub fn decode(url: &Url) -> Result<DecodeData, DecodeError> { pub fn load(load_data: LoadData, start_chan: LoadConsumer, - classifier: Arc<MIMEClassifier>, + classifier: Arc<MimeClassifier>, cancel_listener: CancellationListener) { let url = load_data.url; |