aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-10-05 01:53:20 -0500
committerGitHub <noreply@github.com>2016-10-05 01:53:20 -0500
commitc2727b18b0a42ed88f3a8bb5a5535a8206314f8f (patch)
tree6fcd948a7312b810f43887c931600e89028308ec /components
parentcbc857bb78fdc5e9221ecdec25c82be7172bab36 (diff)
parentef25c86cd7197274850fb268b1e27617035b0bac (diff)
downloadservo-c2727b18b0a42ed88f3a8bb5a5535a8206314f8f.tar.gz
servo-c2727b18b0a42ed88f3a8bb5a5535a8206314f8f.zip
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 -->
Diffstat (limited to 'components')
-rw-r--r--components/script/body.rs2
-rw-r--r--components/script/fetch.rs4
2 files changed, 2 insertions, 4 deletions
diff --git a/components/script/body.rs b/components/script/body.rs
index 814a62c30eb..36a18134c98 100644
--- a/components/script/body.rs
+++ b/components/script/body.rs
@@ -25,7 +25,6 @@ use std::str;
use url::form_urlencoded;
pub enum BodyType {
- ArrayBuffer,
Blob,
FormData,
Json,
@@ -92,7 +91,6 @@ fn run_package_data_algorithm<T: BodyOperations + Reflectable>(object: &T,
BodyType::Json => run_json_data_algorithm(cx, bytes),
BodyType::Blob => run_blob_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()))
}
}
diff --git a/components/script/fetch.rs b/components/script/fetch.rs
index 0fc0fef1f89..d60d174daad 100644
--- a/components/script/fetch.rs
+++ b/components/script/fetch.rs
@@ -153,12 +153,12 @@ impl FetchResponseListener for FetchContext {
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
// ... 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
// ... trailerObject is not supported in Servo yet.
}