@@ -362,7 +362,7 @@ impl<'lock, C: AsMut<PgConnection>> PgAdvisoryLockGuard<'lock, C> {
362362 }
363363}
364364
365- impl < ' lock , C : AsMut < PgConnection > + AsRef < PgConnection > > Deref for PgAdvisoryLockGuard < ' lock , C > {
365+ impl < C : AsMut < PgConnection > + AsRef < PgConnection > > Deref for PgAdvisoryLockGuard < ' _ , C > {
366366 type Target = PgConnection ;
367367
368368 fn deref ( & self ) -> & Self :: Target {
@@ -376,16 +376,14 @@ impl<'lock, C: AsMut<PgConnection> + AsRef<PgConnection>> Deref for PgAdvisoryLo
376376/// However, replacing the connection with a different one using, e.g. [`std::mem::replace()`]
377377/// is a logic error and will cause a warning to be logged by the PostgreSQL server when this
378378/// guard attempts to release the lock.
379- impl < ' lock , C : AsMut < PgConnection > + AsRef < PgConnection > > DerefMut
380- for PgAdvisoryLockGuard < ' lock , C >
381- {
379+ impl < C : AsMut < PgConnection > + AsRef < PgConnection > > DerefMut for PgAdvisoryLockGuard < ' _ , C > {
382380 fn deref_mut ( & mut self ) -> & mut Self :: Target {
383381 self . conn . as_mut ( ) . expect ( NONE_ERR ) . as_mut ( )
384382 }
385383}
386384
387- impl < ' lock , C : AsMut < PgConnection > + AsRef < PgConnection > > AsRef < PgConnection >
388- for PgAdvisoryLockGuard < ' lock , C >
385+ impl < C : AsMut < PgConnection > + AsRef < PgConnection > > AsRef < PgConnection >
386+ for PgAdvisoryLockGuard < ' _ , C >
389387{
390388 fn as_ref ( & self ) -> & PgConnection {
391389 self . conn . as_ref ( ) . expect ( NONE_ERR ) . as_ref ( )
@@ -398,7 +396,7 @@ impl<'lock, C: AsMut<PgConnection> + AsRef<PgConnection>> AsRef<PgConnection>
398396/// However, replacing the connection with a different one using, e.g. [`std::mem::replace()`]
399397/// is a logic error and will cause a warning to be logged by the PostgreSQL server when this
400398/// guard attempts to release the lock.
401- impl < ' lock , C : AsMut < PgConnection > > AsMut < PgConnection > for PgAdvisoryLockGuard < ' lock , C > {
399+ impl < C : AsMut < PgConnection > > AsMut < PgConnection > for PgAdvisoryLockGuard < ' _ , C > {
402400 fn as_mut ( & mut self ) -> & mut PgConnection {
403401 self . conn . as_mut ( ) . expect ( NONE_ERR ) . as_mut ( )
404402 }
@@ -407,7 +405,7 @@ impl<'lock, C: AsMut<PgConnection>> AsMut<PgConnection> for PgAdvisoryLockGuard<
407405/// Queues a `pg_advisory_unlock()` call on the wrapped connection which will be flushed
408406/// to the server the next time it is used, or when it is returned to [`PgPool`][crate::PgPool]
409407/// in the case of [`PoolConnection<Postgres>`][crate::pool::PoolConnection].
410- impl < ' lock , C : AsMut < PgConnection > > Drop for PgAdvisoryLockGuard < ' lock , C > {
408+ impl < C : AsMut < PgConnection > > Drop for PgAdvisoryLockGuard < ' _ , C > {
411409 fn drop ( & mut self ) {
412410 if let Some ( mut conn) = self . conn . take ( ) {
413411 // Queue a simple query message to execute next time the connection is used.
0 commit comments