Skip to content

Commit

Permalink
fix: change index key visibility
Browse files Browse the repository at this point in the history
Change the visibility of the key enum to
pub(crate) so the database can be used inside the crate.

The enum can then be reexported if required in another module.
  • Loading branch information
poelzi authored and vincent-herlemont committed Oct 21, 2023
1 parent f552a8e commit adbd903
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion struct_db_macro/src/struct_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ pub fn struct_db(args: TokenStream, input: TokenStream) -> TokenStream {
}
}

enum #keys_enum_name_token {
/// Index selection Enum for [#struct_name]
pub(crate) enum #keys_enum_name_token {
#(#keys_enum_tokens),*
}

Expand Down

0 comments on commit adbd903

Please sign in to comment.