Skip to content
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

use $crate in macro #270

Merged
merged 1 commit into from Jul 8, 2022
Merged

use $crate in macro #270

merged 1 commit into from Jul 8, 2022

Conversation

leoyvens
Copy link
Contributor

@leoyvens leoyvens commented Jul 7, 2022

This is the recommended way of referring to the current crate in a macro.

Copy link
Member

@josephlr josephlr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per https://doc.rust-lang.org/reference/macros-by-example.html#hygiene $crate was added in 1.30 and our MSRV is 1.34, so LGTM.

@josephlr josephlr merged commit 3d818a6 into rust-random:master Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants