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

Reduce the visibility of most submodules of matchers. #283

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

hovinen
Copy link
Collaborator

@hovinen hovinen commented Jul 28, 2023

This reduces the number of public paths to each of the matcher functions. The functions are now visible only from the matchers module, and submodules containing those functions no longer appear in published documentation.

Submodules containing macros which construct matchers remain public, since downstream crates still depend on these.

This also reduces the visibility of some matcher structs which do not need to be public. Their constructor functions return impl Matcher and they provide no additional methods.

This reduces the number of public paths to each of the matcher functions. The functions are now visible only from the `matchers` module, and submodules containing those functions no longer appear in published documentation.

Submodules containing macros which construct matchers remain public, since downstream crates still depend on these.

This also reduces the visibility of some matcher structs which do not need to be public. Their constructor functions return `impl Matcher` and they provide no additional methods.
@hovinen hovinen force-pushed the reduce-module-visibility branch from 58d9177 to 6d07247 Compare July 28, 2023 08:31
@copybara-service copybara-service bot merged commit 420a263 into main Jul 28, 2023
@gribozavr gribozavr deleted the reduce-module-visibility branch February 17, 2025 18:29
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