File tree Expand file tree Collapse file tree 6 files changed +14
-14
lines changed Expand file tree Collapse file tree 6 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pub struct Config {
44
44
}
45
45
46
46
pub ( crate ) struct ConnProps < ' a > ( pub ( crate ) & ' a lapin:: ConnectionProperties ) ;
47
- impl < ' a > std:: fmt:: Debug for ConnProps < ' a > {
47
+ impl std:: fmt:: Debug for ConnProps < ' _ > {
48
48
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
49
49
f. debug_struct ( "ConnectionProperties" )
50
50
. field ( "locale" , & self . 0 . locale )
Original file line number Diff line number Diff line change @@ -552,7 +552,7 @@ impl<'a> Transaction<'a> {
552
552
}
553
553
}
554
554
555
- impl < ' a > fmt:: Debug for Transaction < ' a > {
555
+ impl fmt:: Debug for Transaction < ' _ > {
556
556
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
557
557
f. debug_struct ( "Transaction" )
558
558
//.field("txn", &self.txn)
@@ -636,7 +636,7 @@ impl<'a> TransactionBuilder<'a> {
636
636
}
637
637
}
638
638
639
- impl < ' a > fmt:: Debug for TransactionBuilder < ' a > {
639
+ impl fmt:: Debug for TransactionBuilder < ' _ > {
640
640
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
641
641
f. debug_struct ( "TransactionBuilder" )
642
642
//.field("builder", &self.builder)
@@ -653,7 +653,7 @@ impl<'a> Deref for TransactionBuilder<'a> {
653
653
}
654
654
}
655
655
656
- impl < ' a > DerefMut for TransactionBuilder < ' a > {
656
+ impl DerefMut for TransactionBuilder < ' _ > {
657
657
fn deref_mut ( & mut self ) -> & mut Self :: Target {
658
658
& mut self . builder
659
659
}
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ async fn test_read_from_replicas() {
57
57
use deadpool_redis:: redis:: pipe;
58
58
let mut cfg = Config :: from_env ( ) ;
59
59
cfg. redis_cluster . read_from_replicas = true ;
60
- assert_eq ! ( cfg. redis_cluster. read_from_replicas, true ) ;
60
+ assert ! ( cfg. redis_cluster. read_from_replicas) ;
61
61
62
62
let pool = cfg
63
63
. redis_cluster
Original file line number Diff line number Diff line change @@ -187,13 +187,13 @@ async fn test_recycled_with_watch() {
187
187
. unwrap ( ) ;
188
188
}
189
189
190
- let get_pipe = pipe ( )
190
+ let _get_pipe = pipe ( )
191
191
. atomic ( )
192
192
. get ( "key2" )
193
193
. query_async :: < Value > ( & mut txn_conn)
194
194
. await
195
195
. unwrap ( ) ;
196
- let get = cmd ( "GET" )
196
+ let _get = cmd ( "GET" )
197
197
. arg ( "key2" )
198
198
. query_async :: < Value > ( & mut txn_conn)
199
199
. await
Original file line number Diff line number Diff line change @@ -151,16 +151,16 @@ struct UnreadyObject<'a, M: Manager> {
151
151
pool : & ' a PoolInner < M > ,
152
152
}
153
153
154
- impl < ' a , M : Manager > UnreadyObject < ' a , M > {
154
+ impl < M : Manager > UnreadyObject < ' _ , M > {
155
155
fn ready ( mut self ) -> ObjectInner < M > {
156
156
self . inner . take ( ) . unwrap ( )
157
157
}
158
158
fn inner ( & mut self ) -> & mut ObjectInner < M > {
159
- return self . inner . as_mut ( ) . unwrap ( ) ;
159
+ self . inner . as_mut ( ) . unwrap ( )
160
160
}
161
161
}
162
162
163
- impl < ' a , M : Manager > Drop for UnreadyObject < ' a , M > {
163
+ impl < M : Manager > Drop for UnreadyObject < ' _ , M > {
164
164
fn drop ( & mut self ) {
165
165
if let Some ( mut inner) = self . inner . take ( ) {
166
166
self . pool . slots . lock ( ) . unwrap ( ) . size -= 1 ;
Original file line number Diff line number Diff line change @@ -176,26 +176,26 @@ where
176
176
#[ derive( Debug ) ]
177
177
pub struct SyncGuard < ' a , T : Send > ( MutexGuard < ' a , Option < T > > ) ;
178
178
179
- impl < ' a , T : Send > Deref for SyncGuard < ' a , T > {
179
+ impl < T : Send > Deref for SyncGuard < ' _ , T > {
180
180
type Target = T ;
181
181
fn deref ( & self ) -> & Self :: Target {
182
182
self . 0 . as_ref ( ) . unwrap ( )
183
183
}
184
184
}
185
185
186
- impl < ' a , T : Send > DerefMut for SyncGuard < ' a , T > {
186
+ impl < T : Send > DerefMut for SyncGuard < ' _ , T > {
187
187
fn deref_mut ( & mut self ) -> & mut Self :: Target {
188
188
self . 0 . as_mut ( ) . unwrap ( )
189
189
}
190
190
}
191
191
192
- impl < ' a , T : Send > AsRef < T > for SyncGuard < ' a , T > {
192
+ impl < T : Send > AsRef < T > for SyncGuard < ' _ , T > {
193
193
fn as_ref ( & self ) -> & T {
194
194
self . 0 . as_ref ( ) . unwrap ( )
195
195
}
196
196
}
197
197
198
- impl < ' a , T : Send > AsMut < T > for SyncGuard < ' a , T > {
198
+ impl < T : Send > AsMut < T > for SyncGuard < ' _ , T > {
199
199
fn as_mut ( & mut self ) -> & mut T {
200
200
self . 0 . as_mut ( ) . unwrap ( )
201
201
}
You can’t perform that action at this time.
0 commit comments