apache / opendal

Apache OpenDAL: One Layer, All Storage.
https://opendal.apache.org
Apache License 2.0
3.46k stars 486 forks source link

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

Closed drmingdrmer closed 4 days ago

drmingdrmer commented 4 days ago

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