mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Update serde to 0.8 (fixes #12659)
This commit is contained in:
parent
a22913569c
commit
7ad51dcd7a
70 changed files with 919 additions and 778 deletions
|
@ -3,7 +3,9 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
extern crate hyper;
|
||||
extern crate hyper_serde;
|
||||
|
||||
use hyper_serde::Serde;
|
||||
use ipc_channel::ipc;
|
||||
use msg::constellation_msg::{PipelineId, ReferrerPolicy};
|
||||
use net_traits::LoadConsumer::Channel;
|
||||
|
@ -44,7 +46,8 @@ fn assert_parse(url: &'static str,
|
|||
classifier, CancellationListener::new(None));
|
||||
|
||||
let response = start_port.recv().unwrap();
|
||||
assert_eq!(&response.metadata.content_type, &content_type);
|
||||
assert_eq!(&response.metadata.content_type.map(Serde::into_inner),
|
||||
&content_type);
|
||||
assert_eq!(&response.metadata.charset, &charset);
|
||||
|
||||
let progress = response.progress_port.recv().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue