mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +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
|
@ -27,6 +27,7 @@ use encoding::label::encoding_from_whatwg_label;
|
|||
use encoding::types::{DecoderTrap, EncodingRef};
|
||||
use html5ever::tree_builder::NextParserState;
|
||||
use hyper::http::RawStatus;
|
||||
use hyper_serde::Serde;
|
||||
use ipc_channel::ipc;
|
||||
use ipc_channel::router::ROUTER;
|
||||
use js::jsval::UndefinedValue;
|
||||
|
@ -158,7 +159,7 @@ impl AsyncResponseListener for ScriptContext {
|
|||
|
||||
let status_code = self.metadata.as_ref().and_then(|m| {
|
||||
match m.status {
|
||||
Some(RawStatus(c, _)) => Some(c),
|
||||
Some(Serde(RawStatus(c, _))) => Some(c),
|
||||
_ => None,
|
||||
}
|
||||
}).unwrap_or(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue