refact(action)
This commit is contained in:
1 parent
87569de3c9
commit
79c9e51e8c
2 files changed
+3
-2
No files matched your search
@@ -63,7 +63,8 @@ where
|
||||
{
|
||||
let expanded = quote! {
|
||||
impl #name {
|
||||
pub const fn name(&self) -> &'static str {
|
||||
/// Return the lowercase name of the enum variant as `&str`.
|
||||
const fn name(&self) -> &'static str {
|
||||
match self {
|
||||
#(#variant_description)*
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user