Move key binding groups to config crate
This commit is contained in:
parent
5a0efd69e4
commit
e1c3a463b2
7 changed files with 33 additions and 7 deletions
|
|
@ -49,10 +49,10 @@ pub fn derive_impl(input: DeriveInput) -> syn::Result<TokenStream> {
|
|||
#( #enum_variants )*
|
||||
}
|
||||
|
||||
impl crate::Group for #struct_ident {
|
||||
impl ::cove_input::Group for #struct_ident {
|
||||
type Action = #enum_ident;
|
||||
|
||||
fn action(&self, input: &mut crate::Input) -> Option<Self::Action> {
|
||||
fn action(&self, input: &mut ::cove_input::Input) -> Option<Self::Action> {
|
||||
match () {
|
||||
#( #match_cases )*
|
||||
() => None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue