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

refactor(core): MaybeSend does not need to be unsafe #5338

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

drmingdrmer
Copy link
Contributor

Which issue does this PR close?

Remove unsafe from trait unsafe trait MaybeSend

Closes #.

Rationale for this change

A safe trait provides the same functionality as its unsafe counterpart but requires no safety guarantees from the implementor, making the unsafe keyword unnecessary.

What changes are included in this PR?

Remove unsafe from the trait declaration.

Are there any user-facing changes?

This change is backward compatible

@Xuanwo Xuanwo changed the title refactor: MaybeSend does not need to be unsafe refactor(core): MaybeSend does not need to be unsafe Nov 18, 2024
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you @drmingdrmer for improving this.

@Xuanwo Xuanwo merged commit c8e43a8 into apache:main Nov 18, 2024
239 checks passed
@drmingdrmer drmingdrmer deleted the 02-remove-unsafe branch November 18, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants