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

Impl AsMut for advisory lock types (#2520) #2554

Merged
merged 1 commit into from
Jun 30, 2023
Merged

Impl AsMut for advisory lock types (#2520) #2554

merged 1 commit into from
Jun 30, 2023

Conversation

alilleybrinker
Copy link
Contributor

The documentation for PgAdvisoryLockGuard lists a set of types that should be able to be passed to it, but when actually trying to do so, compilation would fail due to missing AsMut trait implementations for those types. This commit adds the missing AsMut impls so that Transaction and PgConnection can be used as type parameters to PgAdvisoryLockGuard, as expected.

For reference: #2520

The documentation for `PgAdvisoryLockGuard` lists a set of types
that should be able to be passed to it, but when actually trying
to do so, compilation would fail due to missing `AsMut` trait
implementations for those types. This commit adds the missing
`AsMut` impls so that `Transaction` and `PgConnection` can be used
as type parameters to `PgAdvisoryLockGuard`, as expected.

For reference: #2520
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