mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-26 01:37:55 +00:00
Format the compile-test sources with rustfmt 0.8.2
This commit is contained in:
@@ -18,7 +18,7 @@ struct Foo {
|
||||
|
||||
#[derive(Deserialize)]
|
||||
struct Other {
|
||||
x: u32
|
||||
x: u32,
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
||||
@@ -11,14 +11,14 @@ extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct Foo {
|
||||
#[serde(flatten, skip_serializing_if="Option::is_none")]
|
||||
#[serde(flatten, skip_serializing_if = "Option::is_none")]
|
||||
//~^^^ ERROR: #[serde(flatten] can not be combined with #[serde(skip_serializing_if = "...")]
|
||||
other: Option<Other>,
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct Other {
|
||||
x: u32
|
||||
x: u32,
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
||||
@@ -18,7 +18,7 @@ struct Foo {
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct Other {
|
||||
x: u32
|
||||
x: u32,
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
||||
Reference in New Issue
Block a user