mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 10:38:02 +00:00
Format the compile-test sources with rustfmt 0.8.2
This commit is contained in:
@@ -16,7 +16,7 @@ struct Str<'a>(&'a str);
|
||||
enum Test<'a> {
|
||||
#[serde(borrow)]
|
||||
//~^^^ ERROR: duplicate serde attribute `borrow`
|
||||
S(#[serde(borrow)] Str<'a>)
|
||||
S(#[serde(borrow)] Str<'a>),
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
||||
@@ -16,7 +16,7 @@ struct Str<'a>(&'a str);
|
||||
enum Test<'a> {
|
||||
#[serde(borrow)]
|
||||
//~^^^ ERROR: #[serde(borrow)] may only be used on newtype variants
|
||||
S { s: Str<'a> }
|
||||
S { s: Str<'a> },
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
||||
Reference in New Issue
Block a user