Format with rustfmt 0.99.2

This commit is contained in:
David Tolnay committed 2018-09-01 23:03:41 -07:00
1 parent 55cecace29
commit d23a40c1bb
2 files changed
+10 -5

No files matched your search

+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,