Correctly test `deserialize_ignored_any` for simple type deserializers
We expect that `deserialize_any` was called for a type. The wrapper type is only
required to add a PartialEq trait for use in assert_eq!, so we add a #[serde(transparent)]
@@ -899,6 +899,7 @@ mod tests {
}
#[derive(Debug, Deserialize)]
+ #[serde(transparent)]
struct Any(IgnoredAny);
impl PartialEq for Any {
fn eq(&self, _other: &Any) -> bool {
@@ -952,9 +953,6 @@ mod tests {
};
}
- deserialized_to!(any_owned: String = "&lt;escaped&#x20;string" => "<escaped string");
- deserialized_to!(any_borrowed: &str = "non-escaped string" => "non-escaped string");
-
deserialized_to!(false_: bool = "false" => false);
deserialized_to!(true_: bool = "true" => true);
