@@ -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,16 @@ 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 >
379+ impl < C : AsMut < PgConnection > + AsRef < PgConnection > > DerefMut
380+ for PgAdvisoryLockGuard < ' _ , C >
381381{
382382 fn deref_mut ( & mut self ) -> & mut Self :: Target {
383383 self . conn . as_mut ( ) . expect ( NONE_ERR ) . as_mut ( )
384384 }
385385}
386386
387- impl < ' lock , C : AsMut < PgConnection > + AsRef < PgConnection > > AsRef < PgConnection >
388- for PgAdvisoryLockGuard < ' lock , C >
387+ impl < C : AsMut < PgConnection > + AsRef < PgConnection > > AsRef < PgConnection >
388+ for PgAdvisoryLockGuard < ' _ , C >
389389{
390390 fn as_ref ( & self ) -> & PgConnection {
391391 self . conn . as_ref ( ) . expect ( NONE_ERR ) . as_ref ( )
@@ -398,7 +398,7 @@ impl<'lock, C: AsMut<PgConnection> + AsRef<PgConnection>> AsRef<PgConnection>
398398/// However, replacing the connection with a different one using, e.g. [`std::mem::replace()`]
399399/// is a logic error and will cause a warning to be logged by the PostgreSQL server when this
400400/// guard attempts to release the lock.
401- impl < ' lock , C : AsMut < PgConnection > > AsMut < PgConnection > for PgAdvisoryLockGuard < ' lock , C > {
401+ impl < C : AsMut < PgConnection > > AsMut < PgConnection > for PgAdvisoryLockGuard < ' _ , C > {
402402 fn as_mut ( & mut self ) -> & mut PgConnection {
403403 self . conn . as_mut ( ) . expect ( NONE_ERR ) . as_mut ( )
404404 }
@@ -407,7 +407,7 @@ impl<'lock, C: AsMut<PgConnection>> AsMut<PgConnection> for PgAdvisoryLockGuard<
407407/// Queues a `pg_advisory_unlock()` call on the wrapped connection which will be flushed
408408/// to the server the next time it is used, or when it is returned to [`PgPool`][crate::PgPool]
409409/// in the case of [`PoolConnection<Postgres>`][crate::pool::PoolConnection].
410- impl < ' lock , C : AsMut < PgConnection > > Drop for PgAdvisoryLockGuard < ' lock , C > {
410+ impl < C : AsMut < PgConnection > > Drop for PgAdvisoryLockGuard < ' _ , C > {
411411 fn drop ( & mut self ) {
412412 if let Some ( mut conn) = self . conn . take ( ) {
413413 // Queue a simple query message to execute next time the connection is used.
0 commit comments