Format with rustfmt 0.99.2

This commit is contained in:
David Tolnay
2018-09-01 23:03:41 -07:00
parent 55cecace29
commit d23a40c1bb
2 changed files with 10 additions and 5 deletions
+6 -4
View File
@@ -13,15 +13,17 @@ fn test_raw_identifiers() {
#[derive(Debug, PartialEq, Serialize, Deserialize)]
#[allow(non_camel_case_types)]
enum r#type {
r#type {
r#type: (),
}
r#type { r#type: () },
}
assert_tokens(
&r#type::r#type { r#type: () },
&[
Token::StructVariant { name: "type", variant: "type", len: 1 },
Token::StructVariant {
name: "type",
variant: "type",
len: 1,
},
Token::Str("type"),
Token::Unit,
Token::StructVariantEnd,