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

Clean up the use of macro_use and extern crate #398

Merged
merged 2 commits into from Mar 23, 2021

Conversation

JmPotato
Copy link
Member

@JmPotato JmPotato commented Mar 23, 2021

Signed-off-by: JmPotato ghzpotato@gmail.com

macro_use and extern crate are no longer needed in 99% of circumstances. So I clean up them to make sure it's more consistent, more flexible, and easier to look up the macro definition. You can check Path clarity for more detials.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
@JmPotato
Copy link
Member Author

/cc @breeswish @mxinden

@@ -7,6 +7,7 @@ description = "Static metric helper utilities for rust-prometheus."
repository = "https://github.com/tikv/rust-prometheus"
homepage = "https://github.com/tikv/rust-prometheus"
documentation = "https://docs.rs/prometheus-static-metric"
edition = "2018"
Copy link
Member

Choose a reason for hiding this comment

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

Self-note: this needs a version bump to 0.6.z

@lucab
Copy link
Member

lucab commented Mar 23, 2021

A much welcome cleanup, LGTM. Thanks!

@lucab lucab merged commit 1e7736f into tikv:master Mar 23, 2021
@JmPotato JmPotato deleted the refine_macro_use branch March 23, 2021 10:54
@lucab lucab mentioned this pull request Sep 27, 2021
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