Skip to content

Conversation

@hovinen
Copy link
Contributor

@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.

2 participants