mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Auto merge of #13577 - servo:warnings, r=jdm
Squash some build warnings. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13577) <!-- Reviewable:end -->
This commit is contained in:
commit
c2727b18b0
2 changed files with 2 additions and 4 deletions
|
@ -25,7 +25,6 @@ use std::str;
|
||||||
use url::form_urlencoded;
|
use url::form_urlencoded;
|
||||||
|
|
||||||
pub enum BodyType {
|
pub enum BodyType {
|
||||||
ArrayBuffer,
|
|
||||||
Blob,
|
Blob,
|
||||||
FormData,
|
FormData,
|
||||||
Json,
|
Json,
|
||||||
|
@ -92,7 +91,6 @@ fn run_package_data_algorithm<T: BodyOperations + Reflectable>(object: &T,
|
||||||
BodyType::Json => run_json_data_algorithm(cx, bytes),
|
BodyType::Json => run_json_data_algorithm(cx, bytes),
|
||||||
BodyType::Blob => run_blob_data_algorithm(object.global().r(), bytes, mime),
|
BodyType::Blob => run_blob_data_algorithm(object.global().r(), bytes, mime),
|
||||||
BodyType::FormData => run_form_data_algorithm(object.global().r(), bytes, mime),
|
BodyType::FormData => run_form_data_algorithm(object.global().r(), bytes, mime),
|
||||||
_ => Err(Error::Type("Unable to process body type".to_string()))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -153,12 +153,12 @@ impl FetchResponseListener for FetchContext {
|
||||||
self.fetch_promise = Some(TrustedPromise::new(promise));
|
self.fetch_promise = Some(TrustedPromise::new(promise));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn process_response_chunk(&mut self, mut chunk: Vec<u8>) {
|
fn process_response_chunk(&mut self, _chunk: Vec<u8>) {
|
||||||
// TODO when body is implemented
|
// TODO when body is implemented
|
||||||
// ... this will append the chunk to Response's body.
|
// ... this will append the chunk to Response's body.
|
||||||
}
|
}
|
||||||
|
|
||||||
fn process_response_eof(&mut self, response: Result<(), NetworkError>) {
|
fn process_response_eof(&mut self, _response: Result<(), NetworkError>) {
|
||||||
// TODO
|
// TODO
|
||||||
// ... trailerObject is not supported in Servo yet.
|
// ... trailerObject is not supported in Servo yet.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue