Deduplicate test struct
@@ -3922,6 +3922,12 @@ mod flatten_struct {
mod enum_ {
use super::*;
+ #[derive(Debug, Deserialize, PartialEq)]
+ struct Nested {
+ //TODO: change to f64 after fixing https://github.com/serde-rs/serde/issues/1183
+ float: String,
+ }
+
mod externally_tagged {
use super::*;
use pretty_assertions::assert_eq;
@@ -3947,12 +3953,6 @@ mod enum_ {
},
}
- #[derive(Debug, Deserialize, PartialEq)]
- struct Nested {
- //TODO: change to f64 after fixing https://github.com/serde-rs/serde/issues/1183
- float: String,
- }
-
/// Workaround for serde bug https://github.com/serde-rs/serde/issues/1904
#[derive(Debug, Deserialize, PartialEq)]
enum Workaround {
@@ -4120,12 +4120,6 @@ mod enum_ {
value: bool,
}
- #[derive(Debug, Deserialize, PartialEq)]
- struct Nested {
- //TODO: change to f64 after fixing https://github.com/serde-rs/serde/issues/1183
- float: String,
- }
-
mod unit {
use super::*;
use pretty_assertions::assert_eq;
@@ -4306,12 +4300,6 @@ mod enum_ {
},
}
- #[derive(Debug, Deserialize, PartialEq)]
- struct Nested {
- //TODO: change to f64 after fixing https://github.com/serde-rs/serde/issues/1183
- float: String,
- }
-
/// Workaround for serde bug https://github.com/serde-rs/serde/issues/1904
#[derive(Debug, Deserialize, PartialEq)]
#[serde(tag = "tag", content = "content")]
@@ -4524,12 +4512,6 @@ mod enum_ {
},
}
- #[derive(Debug, Deserialize, PartialEq)]
- struct Nested {
- //TODO: change to f64 after fixing https://github.com/serde-rs/serde/issues/1183
- float: String,
- }
-
/// Workaround for serde bug https://github.com/serde-rs/serde/issues/1904
#[derive(Debug, Deserialize, PartialEq)]
#[serde(untagged)]
