Auto format attributes on their own line

This commit is contained in:
David Tolnay
2017-12-23 20:24:57 -08:00
parent ab234be025
commit ed6a1de311
9 changed files with 228 additions and 117 deletions
+6 -3
View File
@@ -110,7 +110,8 @@ fn test_cow() {
struct Cows<'a, 'b> {
copied: Cow<'a, str>,
#[serde(borrow)] borrowed: Cow<'b, str>,
#[serde(borrow)]
borrowed: Cow<'b, str>,
}
let tokens = &[
@@ -145,7 +146,8 @@ fn test_lifetimes() {
struct Cows<'a, 'b> {
_copied: Cow<'a, str>,
#[serde(borrow)] _borrowed: Cow<'b, str>,
#[serde(borrow)]
_borrowed: Cow<'b, str>,
}
// Tests that `'de: 'a` is not required by the Deserialize impl.
@@ -158,7 +160,8 @@ fn test_lifetimes() {
#[derive(Deserialize)]
struct Wrap<'a, 'b> {
#[serde(borrow = "'b")] _cows: Cows<'a, 'b>,
#[serde(borrow = "'b")]
_cows: Cows<'a, 'b>,
}
// Tests that `'de: 'a` is not required by the Deserialize impl.