-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add derive(Debug, Clone, Copy) for enums
This will allow users to use enums in format strings via {:?}, and to pass the same variant to multiple functions (e.g. when creating access & miss counters programmatically for the same cache id). Other drive-by changes: - Fixed some truncated doc strings - CLion was sprinkling suggestions for it, so I let it adopt the struct field initialization syntax shortcut when the field name is identical to the var name it's being set to - Convert some not-used /// doc comments to // regular comments as per compiler warnings
- Loading branch information
1 parent
8e5b5e4
commit fbf7084
Showing
2 changed files
with
83 additions
and
73 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