@@ -36,7 +36,7 @@ fn smoke_test(s: &str) {
36
36
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
37
37
38
38
let handshake = connect ( s) ;
39
- let ( mut client, connection) = runtime. block_on ( handshake) . unwrap ( ) ;
39
+ let ( client, connection) = runtime. block_on ( handshake) . unwrap ( ) ;
40
40
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
41
41
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
42
42
@@ -139,7 +139,7 @@ fn pipelined_prepare() {
139
139
let _ = env_logger:: try_init ( ) ;
140
140
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
141
141
142
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
142
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
143
143
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
144
144
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
145
145
@@ -157,7 +157,7 @@ fn insert_select() {
157
157
let _ = env_logger:: try_init ( ) ;
158
158
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
159
159
160
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
160
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
161
161
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
162
162
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
163
163
@@ -193,7 +193,7 @@ fn query_portal() {
193
193
let _ = env_logger:: try_init ( ) ;
194
194
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
195
195
196
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
196
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
197
197
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
198
198
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
199
199
@@ -237,7 +237,7 @@ fn cancel_query_raw() {
237
237
let _ = env_logger:: try_init ( ) ;
238
238
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
239
239
240
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
240
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
241
241
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
242
242
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
243
243
@@ -271,7 +271,7 @@ fn custom_enum() {
271
271
let _ = env_logger:: try_init ( ) ;
272
272
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
273
273
274
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
274
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
275
275
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
276
276
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
277
277
@@ -309,7 +309,7 @@ fn custom_domain() {
309
309
let _ = env_logger:: try_init ( ) ;
310
310
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
311
311
312
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
312
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
313
313
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
314
314
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
315
315
@@ -336,7 +336,7 @@ fn custom_array() {
336
336
let _ = env_logger:: try_init ( ) ;
337
337
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
338
338
339
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
339
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
340
340
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
341
341
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
342
342
@@ -359,7 +359,7 @@ fn custom_composite() {
359
359
let _ = env_logger:: try_init ( ) ;
360
360
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
361
361
362
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
362
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
363
363
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
364
364
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
365
365
@@ -400,7 +400,7 @@ fn custom_range() {
400
400
let _ = env_logger:: try_init ( ) ;
401
401
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
402
402
403
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
403
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
404
404
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
405
405
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
406
406
@@ -430,7 +430,7 @@ fn custom_simple() {
430
430
let _ = env_logger:: try_init ( ) ;
431
431
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
432
432
433
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
433
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
434
434
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
435
435
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
436
436
@@ -447,7 +447,7 @@ fn notifications() {
447
447
let _ = env_logger:: try_init ( ) ;
448
448
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
449
449
450
- let ( mut client, mut connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
450
+ let ( client, mut connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
451
451
452
452
let ( tx, rx) = mpsc:: unbounded ( ) ;
453
453
let connection = future:: poll_fn ( move || {
@@ -491,7 +491,7 @@ fn transaction_commit() {
491
491
let _ = env_logger:: try_init ( ) ;
492
492
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
493
493
494
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
494
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
495
495
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
496
496
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
497
497
@@ -532,7 +532,7 @@ fn transaction_abort() {
532
532
let _ = env_logger:: try_init ( ) ;
533
533
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
534
534
535
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
535
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
536
536
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
537
537
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
538
538
@@ -574,7 +574,7 @@ fn copy_in() {
574
574
let _ = env_logger:: try_init ( ) ;
575
575
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
576
576
577
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
577
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
578
578
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
579
579
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
580
580
@@ -621,7 +621,7 @@ fn copy_in_error() {
621
621
let _ = env_logger:: try_init ( ) ;
622
622
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
623
623
624
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
624
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
625
625
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
626
626
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
627
627
@@ -664,7 +664,7 @@ fn copy_out() {
664
664
let _ = env_logger:: try_init ( ) ;
665
665
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
666
666
667
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
667
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
668
668
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
669
669
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
670
670
@@ -697,7 +697,7 @@ fn transaction_builder_around_moved_client() {
697
697
let _ = env_logger:: try_init ( ) ;
698
698
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
699
699
700
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
700
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
701
701
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
702
702
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
703
703
@@ -715,15 +715,15 @@ fn transaction_builder_around_moved_client() {
715
715
. prepare ( "INSERT INTO transaction_foo (name) VALUES ($1), ($2)" )
716
716
. map ( |statement| ( client, statement) )
717
717
} )
718
- . and_then ( |( mut client, statement) | {
718
+ . and_then ( |( client, statement) | {
719
719
client
720
720
. query ( & statement, & [ & "jim" , & "joe" ] )
721
721
. collect ( )
722
722
. map ( |_res| client)
723
723
} ) ;
724
724
725
725
let transaction = transaction_builder. build ( work) ;
726
- let mut client = runtime. block_on ( transaction) . unwrap ( ) ;
726
+ let client = runtime. block_on ( transaction) . unwrap ( ) ;
727
727
728
728
let data = runtime
729
729
. block_on (
@@ -743,7 +743,7 @@ fn simple_query() {
743
743
let _ = env_logger:: try_init ( ) ;
744
744
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
745
745
746
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
746
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
747
747
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
748
748
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
749
749
@@ -821,7 +821,7 @@ fn poll_idle_running() {
821
821
let _ = env_logger:: try_init ( ) ;
822
822
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
823
823
824
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
824
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
825
825
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
826
826
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
827
827
@@ -872,7 +872,7 @@ fn poll_idle_new() {
872
872
let _ = env_logger:: try_init ( ) ;
873
873
let mut runtime = Runtime :: new ( ) . unwrap ( ) ;
874
874
875
- let ( mut client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
875
+ let ( client, connection) = runtime. block_on ( connect ( "user=postgres" ) ) . unwrap ( ) ;
876
876
let connection = connection. map_err ( |e| panic ! ( "{}" , e) ) ;
877
877
runtime. handle ( ) . spawn ( connection) . unwrap ( ) ;
878
878
0 commit comments