From 088351469ad3a602fe50f95fa1baba7c80854eb4 Mon Sep 17 00:00:00 2001 From: Jarda Snajdr Date: Wed, 31 Aug 2016 14:18:01 +0200 Subject: [PATCH] Console message packets should have a '_type' attribute --- components/devtools_traits/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/devtools_traits/lib.rs b/components/devtools_traits/lib.rs index 2d8f5f0c197..ecaec49995b 100644 --- a/components/devtools_traits/lib.rs +++ b/components/devtools_traits/lib.rs @@ -252,7 +252,7 @@ bitflags! { #[derive(Deserialize, Serialize)] pub struct PageError { - #[serde(rename = "type")] + #[serde(rename = "_type")] pub type_: String, pub errorMessage: String, pub sourceName: String, @@ -270,7 +270,7 @@ pub struct PageError { #[derive(Deserialize, Serialize)] pub struct ConsoleAPI { - #[serde(rename = "type")] + #[serde(rename = "_type")] pub type_: String, pub level: String, pub filename: String,