Created
August 6, 2019 13:36
-
-
Save andreastt/5f46bd61cadb8570ccaa0cfe307bbc56 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/testing/geckodriver/marionette/src/result.rs b/testing/geckodriver/marionette/src/result.rs | |
index 72fec8d67cba..3b04217a4c20 100644 | |
--- a/testing/geckodriver/marionette/src/result.rs | |
+++ b/testing/geckodriver/marionette/src/result.rs | |
@@ -1,4 +1,4 @@ | |
-use serde::{Deserialize, Deserializer, Serialize, Serializer}; | |
+use serde::{de, Deserialize, Deserializer, Serialize, Serializer}; | |
use serde_json::Value; | |
use crate::common::{Cookie, Timeouts, WebElement}; | |
@@ -71,7 +71,11 @@ where | |
value: T, | |
} | |
- let w = Wrapper::deserialize(deserializer)?; | |
+ let v = Value::deserialize(deserializer)?; | |
+ dbg!(&v); | |
+ | |
+ let w = serde_json::from_value::<Wrapper<T>>(v) | |
+ .map_err(de::Error::custom)?; | |
Ok(w.value) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment