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

Refactor Registry::new_custom() to accept AsRef<str> instead of String for improved flexibility #522

Closed
wants to merge 1 commit into from

Conversation

j3rrywan9
Copy link

Refactor Registry::new_custom() to accept AsRef<str> instead of String for improved flexibility, so that the labels! macro can be used for the 2nd parameter here. For example:

let registry = Registry::new_custom(Some("test"), Some(labels!{"environment" => "test"})).unwrap();

@j3rrywan9 j3rrywan9 force-pushed the master branch 2 times, most recently from bf59af1 to a1f6e2f Compare June 2, 2024 19:43
…String` for improved flexibility

Signed-off-by: Jerry Wang <[email protected]>
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.

1 participant