This commit is contained in:
Hirrolot 2022-03-23 07:52:04 +06:00
parent e645c9fc7b
commit f9615fc5ab

View file

@ -1,6 +1,9 @@
// Some concepts are from Serde.
use heck::{ToPascalCase, ToLowerCamelCase, ToSnakeCase, ToShoutySnakeCase, ToKebabCase, ToShoutyKebabCase};
use heck::{
ToKebabCase, ToLowerCamelCase, ToPascalCase, ToShoutyKebabCase,
ToShoutySnakeCase, ToSnakeCase,
};
/// Apply a renaming rule to an enum variant,
/// returning the version expected in the source.
@ -111,4 +114,4 @@ mod tests {
test_eq!("Hello-World", "HELLO-WORLD");
test_eq!("helloWorld", "HELLO-WORLD");
}
}
}