mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Rename MIMEClassifier
to match Rust acronym naming conventions.
e.g. `std::net::TcpStream`
This commit is contained in:
parent
749fe986aa
commit
6c02a576cf
11 changed files with 46 additions and 46 deletions
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use file_loader;
|
||||
use mime_classifier::MIMEClassifier;
|
||||
use mime_classifier::MimeClassifier;
|
||||
use net_traits::{LoadConsumer, LoadData, NetworkError};
|
||||
use resource_thread::{CancellationListener, send_error};
|
||||
use std::fs::canonicalize;
|
||||
|
@ -37,7 +37,7 @@ pub fn resolve_chrome_url(url: &Url) -> Result<Url, ()> {
|
|||
|
||||
pub fn factory(mut load_data: LoadData,
|
||||
start_chan: LoadConsumer,
|
||||
classifier: Arc<MIMEClassifier>,
|
||||
classifier: Arc<MimeClassifier>,
|
||||
cancel_listener: CancellationListener) {
|
||||
let file_url = match resolve_chrome_url(&load_data.url) {
|
||||
Ok(url) => url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue