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

Usage of literal_matcher_from_pattern requires lazy_static #36

Closed
terrorfisch opened this issue Jul 17, 2022 · 1 comment · Fixed by #37
Closed

Usage of literal_matcher_from_pattern requires lazy_static #36

terrorfisch opened this issue Jul 17, 2022 · 1 comment · Fixed by #37

Comments

@terrorfisch
Copy link
Contributor

Using the macro literal_matcher_from_pattern! requires adding lazy_static to Cargo.toml in the consuming crate.

If I understand this stack overflow answer correctly this can be fixed by exporting lazy_static (maybe with #[doc(hidden)]?) and refer to it via $crate::lazy_static::lazy_static.

@bertiqwerty
Copy link
Owner

Good catch. Same for regex.

@bertiqwerty bertiqwerty linked a pull request Jul 17, 2022 that will close this issue
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 a pull request may close this issue.

2 participants