mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -24,6 +24,7 @@ use dom::htmlsourceelement::HTMLSourceElement;
|
|||
use dom::mediaerror::MediaError;
|
||||
use dom::node::{window_from_node, document_from_node, Node, UnbindContext};
|
||||
use dom::virtualmethods::VirtualMethods;
|
||||
use hyper_serde::Serde;
|
||||
use ipc_channel::ipc;
|
||||
use ipc_channel::router::ROUTER;
|
||||
use net_traits::{AsyncResponseListener, AsyncResponseTarget, Metadata, NetworkError};
|
||||
|
@ -67,7 +68,7 @@ impl AsyncResponseListener for HTMLMediaElementContext {
|
|||
.as_ref()
|
||||
.and_then(|m| m.status
|
||||
.as_ref()
|
||||
.map(|s| s.0 < 200 || s.0 >= 300))
|
||||
.map(|&Serde(ref s)| s.0 < 200 || s.0 >= 300))
|
||||
.unwrap_or(false);
|
||||
if is_failure {
|
||||
// Ensure that the element doesn't receive any further notifications
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue