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

Pull visibilty policy up #156

Closed
wants to merge 2 commits into from
Closed

Conversation

brandonpike
Copy link
Contributor

Before this commit, all visibility was handled at the lowest level possible. This litters the code with pub(crate) in almost every file. Instead, what my commit does is let the highest level possible deal with it.

@brandonpike brandonpike marked this pull request as ready for review December 7, 2023 03:39
Copy link
Contributor

@mcches mcches left a comment

Choose a reason for hiding this comment

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

Thanks for doing this. I left one comment that needs to be addressed. Is there any way to diff the rustdoc or something to ensure we didn't break or open up more of the public api surface with this change?

src/sim.rs Outdated
@@ -34,7 +34,7 @@ pub struct Sim<'a> {
}

impl<'a> Sim<'a> {
pub(crate) fn new(config: Config, world: World) -> Self {
pub fn new(config: Config, world: World) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't believe this one should change. Construction should happen through the builder.

Before this commit, all visibility was handled at the lowest level possible. This litters the code with pub(crate) in almost every file. Instead, what my commit does is let the highest level possible deal with it.
@mcches
Copy link
Contributor

mcches commented Apr 10, 2024

Closing due to inactivity.

@mcches mcches closed this Apr 10, 2024
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