Format the compile-test sources with rustfmt 0.8.2

This commit is contained in:
David Tolnay
2018-06-02 22:30:55 -07:00
parent a4acc83282
commit 0a71fe329c
28 changed files with 38 additions and 36 deletions
@@ -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() {}