Skip to content

refactor(rwlock): remove redundant unsafe trait impls - #357

Draft
tisonkun wants to merge 2 commits into
apache:mainfrom
tisonkun:codex/rwlock-token-cleanup
Draft

tisonkun wants to merge 2 commits into
apache:mainfrom
tisonkun:codex/rwlock-token-cleanup

Conversation

@tisonkun

Copy link
Copy Markdown
Member

Summary

Remove five redundant unsafe impls from RwLock guards and let their access-token fields determine the same Send/Sync bounds. Keep the borrowed read guard's explicit Send implementation, which only requires T: Sync.

Clarify permit-release responsibility during borrowed token conversion and trim the RwLock modification notes in LICENSE, retaining Tokio attribution and the existing license terms.

Validation: cargo x test (593 passed), cargo x check, and cargo x lint.

This branch has not been deployed

No deployments
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.

1 participant