From ef25c86cd7197274850fb268b1e27617035b0bac Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 4 Oct 2016 16:36:34 +0200 Subject: [PATCH] Squash some build warnings. --- components/script/body.rs | 2 -- components/script/fetch.rs | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/components/script/body.rs b/components/script/body.rs index 7777ef62a4e..f607841c982 100644 --- a/components/script/body.rs +++ b/components/script/body.rs @@ -25,7 +25,6 @@ use style::refcell::Ref; use url::form_urlencoded; pub enum BodyType { - ArrayBuffer, Blob, FormData, Json, @@ -92,7 +91,6 @@ fn run_package_data_algorithm(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) { + fn process_response_chunk(&mut self, _chunk: Vec) { // 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. }