Minor fixes for pull request. Cheers @dtolnay.

This commit is contained in:
Michael Mokrysz
2017-02-24 01:55:31 +00:00
parent 3b59d47e07
commit 84915268ee
+3 -3
View File
@@ -93,11 +93,11 @@ pub enum RenameRule {
None, None,
/// Rename direct children to "PascalCase" style, as typically used for enum variants. /// Rename direct children to "PascalCase" style, as typically used for enum variants.
PascalCase, PascalCase,
/// Rename direct children to "kebabCase" style. /// Rename direct children to "camelCase" style.
CamelCase, CamelCase,
/// Rename direct children to "snake_case" style, as commonly used for fields. /// Rename direct children to "snake_case" style, as commonly used for fields.
SnakeCase, SnakeCase,
/// Rename direct children to "SNAKE_CASE" style, as commonly used for constants. /// Rename direct children to "SCREAMING_SNAKE_CASE" style, as commonly used for constants.
ScreamingSnakeCase, ScreamingSnakeCase,
/// Rename direct children to "kebab-case" style. /// Rename direct children to "kebab-case" style.
KebabCase, KebabCase,
@@ -370,7 +370,7 @@ impl Item {
EnumTag::External EnumTag::External
} }
}; };
// @DEBUG
Item { Item {
name: Name { name: Name {
serialize: ser_name.get().unwrap_or_else(|| item.ident.to_string()), serialize: ser_name.get().unwrap_or_else(|| item.ident.to_string()),