diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-08-12 14:46:25 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-08-12 18:37:27 +0200 |
commit | 7ad51dcd7aff7658914bcbdde0800fc2f87d9fa5 (patch) | |
tree | 7c3323204e3fb5d85edcb95b97748962e3978ae1 /components/script/dom/htmlscriptelement.rs | |
parent | a22913569c2fa917015b23c27cb2f55de2a69ff2 (diff) | |
download | servo-7ad51dcd7aff7658914bcbdde0800fc2f87d9fa5.tar.gz servo-7ad51dcd7aff7658914bcbdde0800fc2f87d9fa5.zip |
Update serde to 0.8 (fixes #12659)
Diffstat (limited to 'components/script/dom/htmlscriptelement.rs')
-rw-r--r-- | components/script/dom/htmlscriptelement.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/htmlscriptelement.rs b/components/script/dom/htmlscriptelement.rs index 442f3063524..6a6fe7d50b4 100644 --- a/components/script/dom/htmlscriptelement.rs +++ b/components/script/dom/htmlscriptelement.rs @@ -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); |