mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 01:18:02 +00:00
Format the compile-test sources with rustfmt 0.8.2
This commit is contained in:
@@ -10,10 +10,10 @@
|
||||
extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[serde(abc="xyz")]
|
||||
#[serde(abc = "xyz")]
|
||||
//~^^ ERROR: unknown serde container attribute `abc`
|
||||
struct A {
|
||||
x: u32,
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
fn main() {}
|
||||
|
||||
@@ -11,9 +11,9 @@ extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct C {
|
||||
#[serde(abc="xyz")]
|
||||
#[serde(abc = "xyz")]
|
||||
//~^^^ ERROR: unknown serde field attribute `abc`
|
||||
x: u32,
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
fn main() {}
|
||||
|
||||
@@ -11,9 +11,9 @@ extern crate serde_derive;
|
||||
|
||||
#[derive(Serialize)]
|
||||
enum E {
|
||||
#[serde(abc="xyz")]
|
||||
#[serde(abc = "xyz")]
|
||||
//~^^^ ERROR: unknown serde variant attribute `abc`
|
||||
V,
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
fn main() {}
|
||||
|
||||
Reference in New Issue
Block a user