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

Remove unnecessary visibilities #55

Merged

Conversation

qryxip
Copy link
Member

@qryxip qryxip commented Sep 16, 2020

No description provided.

@qryxip qryxip force-pushed the remove-unnecessary-vis branch 3 times, most recently from e573de9 to f46751d Compare September 24, 2020 06:34
@qryxip qryxip force-pushed the remove-unnecessary-vis branch from f46751d to f2d8733 Compare October 2, 2020 11:20
@@ -11,11 +11,11 @@ pub mod segtree;
pub mod string;
pub mod twosat;

pub(crate) mod internal_bit;
Copy link
Contributor

Choose a reason for hiding this comment

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

Q. Why Is this pub(crate) in lib.rs is unnecessary? Because It is in lib.rs(root of crate)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. In the crate root, pub(crate) is equivalent to pub(self), and

pub(self) item is the same as if one had written just item.

How is pub(self) visibility different from no pub attribute? - Stack Overflow

But it may be a matter of preference.

@qryxip qryxip force-pushed the remove-unnecessary-vis branch from f2d8733 to 47a5fbc Compare October 4, 2020 07:15
@qryxip qryxip force-pushed the remove-unnecessary-vis branch from 47a5fbc to 69dfa43 Compare October 18, 2020 03:55
@qryxip qryxip force-pushed the remove-unnecessary-vis branch from 69dfa43 to e8ecc80 Compare October 25, 2020 02:29
@TonalidadeHidrica TonalidadeHidrica self-requested a review March 26, 2023 20:12
Copy link
Collaborator

@TonalidadeHidrica TonalidadeHidrica left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants