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

make usart::State private #2258

Merged
merged 1 commit into from
Jan 19, 2024
Merged

make usart::State private #2258

merged 1 commit into from
Jan 19, 2024

Conversation

ExplodingWaffle
Copy link
Contributor

Saw this while browsing the docs, don’t think it should be pub.

@Dirbaio
Copy link
Member

Dirbaio commented Dec 8, 2023

Agreed it should be private. However it's used from a sealed trait, which uses the "pub in private mod" trick. So rust wants the struct to be public. The solution would be to leave it as pub, but move it to a private mod.

@Dirbaio Dirbaio enabled auto-merge January 19, 2024 22:20
@Dirbaio Dirbaio added this pull request to the merge queue Jan 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 19, 2024
@Dirbaio Dirbaio merged commit a2eb46e into embassy-rs:main Jan 19, 2024
6 checks passed
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