-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve:
declare_raft_types
allows the types in any order
By rewriting the template expanding part with a `#[proc_macro]` `expand!()` defined in `openraft_macros`, `declare_raft_types` does not require the types in fixed order: Example: ``` declare_raft_types!(All: D = (), NodeId = u64, R = (), Node = (), ```
- Loading branch information
1 parent
01bb4da
commit e513b3b
Showing
3 changed files
with
29 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters