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

Auto-implement ConnectionLike for DerefMut #567

Merged
merged 1 commit into from May 23, 2022

Commits on Dec 16, 2021

  1. Auto-implement ConnectionLike for DerefMut

    This provides an implementation of `ConnectionLike` for any type that
    can be mutably and immutably dereferenced to an implementation of
    `ConnectionLike` through `DerefMut`. The primary motivation is being
    able to use `r2d2::PoolConnection`s directly to satisfy
    `ConnectionLike`, which makes code using pooled connections easier
    to read. A blanket impl for `r2d2::PoolConnection` would suffice but
    this is more generalised as not to be r2d2 specific.
    holmesmr committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    cdd10ec View commit details
    Browse the repository at this point in the history