-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Macros for State.GetAll* #4551
Conversation
src/shim/actors/verifreg/state.rs
Outdated
}; | ||
Ok(result) | ||
} | ||
} | ||
|
||
#[macro_export] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to export these macros?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't - the macros have to be defined strictly above the code that uses them, which is inconvenient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this exports the macro as a public item at the root of the crate. Does pub(crate) use list_all_inner
below the macro work? Else I think moving the definition to the top of the file is the right thing to do
src/shim/actors/verifreg/state.rs
Outdated
}; | ||
Ok(result) | ||
} | ||
} | ||
|
||
#[macro_export] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this exports the macro as a public item at the root of the crate. Does pub(crate) use list_all_inner
below the macro work? Else I think moving the definition to the top of the file is the right thing to do
Gotta |
Summary of changes
Changes introduced in this pull request:
VerifiedRegistryStateExt
Reference issue to close (if applicable)
Work on #4550
Other information and links
Change checklist