@@ -113,7 +113,7 @@ fn test_transaction_commit() {
113
113
"postgres://postgres@localhost:5433" ,
114
114
TlsMode :: None ,
115
115
) ) ;
116
- or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] , ) ) ;
116
+ or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] ) ) ;
117
117
118
118
let trans = or_panic ! ( conn. transaction( ) ) ;
119
119
or_panic ! ( trans. execute( "INSERT INTO foo (id) VALUES ($1)" , & [ & 1i32 ] ) ) ;
@@ -135,7 +135,7 @@ fn test_transaction_commit_finish() {
135
135
"postgres://postgres@localhost:5433" ,
136
136
TlsMode :: None ,
137
137
) ) ;
138
- or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] , ) ) ;
138
+ or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] ) ) ;
139
139
140
140
let trans = or_panic ! ( conn. transaction( ) ) ;
141
141
or_panic ! ( trans. execute( "INSERT INTO foo (id) VALUES ($1)" , & [ & 1i32 ] ) ) ;
@@ -157,7 +157,7 @@ fn test_transaction_commit_method() {
157
157
"postgres://postgres@localhost:5433" ,
158
158
TlsMode :: None ,
159
159
) ) ;
160
- or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] , ) ) ;
160
+ or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] ) ) ;
161
161
162
162
let trans = or_panic ! ( conn. transaction( ) ) ;
163
163
or_panic ! ( trans. execute( "INSERT INTO foo (id) VALUES ($1)" , & [ & 1i32 ] ) ) ;
@@ -178,7 +178,7 @@ fn test_transaction_rollback() {
178
178
"postgres://postgres@localhost:5433" ,
179
179
TlsMode :: None ,
180
180
) ) ;
181
- or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] , ) ) ;
181
+ or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] ) ) ;
182
182
183
183
or_panic ! ( conn. execute( "INSERT INTO foo (id) VALUES ($1)" , & [ & 1i32 ] ) ) ;
184
184
@@ -201,7 +201,7 @@ fn test_transaction_rollback_finish() {
201
201
"postgres://postgres@localhost:5433" ,
202
202
TlsMode :: None ,
203
203
) ) ;
204
- or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] , ) ) ;
204
+ or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] ) ) ;
205
205
206
206
or_panic ! ( conn. execute( "INSERT INTO foo (id) VALUES ($1)" , & [ & 1i32 ] ) ) ;
207
207
@@ -224,7 +224,7 @@ fn test_nested_transactions() {
224
224
"postgres://postgres@localhost:5433" ,
225
225
TlsMode :: None ,
226
226
) ) ;
227
- or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] , ) ) ;
227
+ or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] ) ) ;
228
228
229
229
or_panic ! ( conn. execute( "INSERT INTO foo (id) VALUES (1)" , & [ ] ) ) ;
230
230
@@ -279,7 +279,7 @@ fn test_nested_transactions_finish() {
279
279
"postgres://postgres@localhost:5433" ,
280
280
TlsMode :: None ,
281
281
) ) ;
282
- or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] , ) ) ;
282
+ or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] ) ) ;
283
283
284
284
or_panic ! ( conn. execute( "INSERT INTO foo (id) VALUES (1)" , & [ ] ) ) ;
285
285
@@ -391,7 +391,7 @@ fn test_stmt_finish() {
391
391
"postgres://postgres@localhost:5433" ,
392
392
TlsMode :: None ,
393
393
) ) ;
394
- or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id BIGINT PRIMARY KEY)" , & [ ] , ) ) ;
394
+ or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id BIGINT PRIMARY KEY)" , & [ ] ) ) ;
395
395
let stmt = or_panic ! ( conn. prepare( "SELECT * FROM foo" ) ) ;
396
396
assert ! ( stmt. finish( ) . is_ok( ) ) ;
397
397
}
@@ -461,8 +461,8 @@ fn test_query() {
461
461
"postgres://postgres@localhost:5433" ,
462
462
TlsMode :: None ,
463
463
) ) ;
464
- or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id BIGINT PRIMARY KEY)" , & [ ] , ) ) ;
465
- or_panic ! ( conn. execute( "INSERT INTO foo (id) VALUES ($1), ($2)" , & [ & 1i64 , & 2i64 ] , ) ) ;
464
+ or_panic ! ( conn. execute( "CREATE TEMPORARY TABLE foo (id BIGINT PRIMARY KEY)" , & [ ] ) ) ;
465
+ or_panic ! ( conn. execute( "INSERT INTO foo (id) VALUES ($1), ($2)" , & [ & 1i64 , & 2i64 ] ) ) ;
466
466
let stmt = or_panic ! ( conn. prepare( "SELECT * from foo ORDER BY id" ) ) ;
467
467
let result = or_panic ! ( stmt. query( & [ ] ) ) ;
468
468
@@ -502,7 +502,7 @@ fn test_lazy_query() {
502
502
) ) ;
503
503
504
504
let trans = or_panic ! ( conn. transaction( ) ) ;
505
- or_panic ! ( trans. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] , ) ) ;
505
+ or_panic ! ( trans. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] ) ) ;
506
506
let stmt = or_panic ! ( trans. prepare( "INSERT INTO foo (id) VALUES ($1)" ) ) ;
507
507
let values = vec ! [ 0i32 , 1 , 2 , 3 , 4 , 5 ] ;
508
508
for value in & values {
@@ -751,8 +751,8 @@ fn test_notification_iterator_some() {
751
751
) ) ;
752
752
let notifications = conn. notifications ( ) ;
753
753
let mut it = notifications. iter ( ) ;
754
- or_panic ! ( conn. execute( "LISTEN test_notification_iterator_one_channel" , & [ ] , ) ) ;
755
- or_panic ! ( conn. execute( "LISTEN test_notification_iterator_one_channel2" , & [ ] , ) ) ;
754
+ or_panic ! ( conn. execute( "LISTEN test_notification_iterator_one_channel" , & [ ] ) ) ;
755
+ or_panic ! ( conn. execute( "LISTEN test_notification_iterator_one_channel2" , & [ ] ) ) ;
756
756
or_panic ! ( conn. execute(
757
757
"NOTIFY test_notification_iterator_one_channel, 'hello'" ,
758
758
& [ ] ,
@@ -780,7 +780,7 @@ fn test_notification_iterator_some() {
780
780
) ;
781
781
assert ! ( it. next( ) . unwrap( ) . is_none( ) ) ;
782
782
783
- or_panic ! ( conn. execute( "NOTIFY test_notification_iterator_one_channel, '!'" , & [ ] , ) ) ;
783
+ or_panic ! ( conn. execute( "NOTIFY test_notification_iterator_one_channel, '!'" , & [ ] ) ) ;
784
784
check_notification (
785
785
Notification {
786
786
process_id : 0 ,
@@ -806,7 +806,7 @@ fn test_notifications_next_block() {
806
806
TlsMode :: None ,
807
807
) ) ;
808
808
thread:: sleep ( Duration :: from_millis ( 500 ) ) ;
809
- or_panic ! ( conn. execute( "NOTIFY test_notifications_next_block, 'foo'" , & [ ] , ) ) ;
809
+ or_panic ! ( conn. execute( "NOTIFY test_notifications_next_block, 'foo'" , & [ ] ) ) ;
810
810
} ) ;
811
811
812
812
let notifications = conn. notifications ( ) ;
@@ -834,9 +834,9 @@ fn test_notification_next_timeout() {
834
834
TlsMode :: None ,
835
835
) ) ;
836
836
thread:: sleep ( Duration :: from_millis ( 500 ) ) ;
837
- or_panic ! ( conn. execute( "NOTIFY test_notifications_next_timeout, 'foo'" , & [ ] , ) ) ;
837
+ or_panic ! ( conn. execute( "NOTIFY test_notifications_next_timeout, 'foo'" , & [ ] ) ) ;
838
838
thread:: sleep ( Duration :: from_millis ( 1500 ) ) ;
839
- or_panic ! ( conn. execute( "NOTIFY test_notifications_next_timeout, 'foo'" , & [ ] , ) ) ;
839
+ or_panic ! ( conn. execute( "NOTIFY test_notifications_next_timeout, 'foo'" , & [ ] ) ) ;
840
840
} ) ;
841
841
842
842
let notifications = conn. notifications ( ) ;
@@ -1181,7 +1181,7 @@ fn test_copy_out() {
1181
1181
CREATE TEMPORARY TABLE foo (id INT);
1182
1182
INSERT INTO foo (id) VALUES (0), (1), (2), (3)" ,
1183
1183
) ) ;
1184
- let stmt = or_panic ! ( conn. prepare( "COPY (SELECT id FROM foo ORDER BY id) TO STDOUT" , ) ) ;
1184
+ let stmt = or_panic ! ( conn. prepare( "COPY (SELECT id FROM foo ORDER BY id) TO STDOUT" ) ) ;
1185
1185
let mut buf = vec ! [ ] ;
1186
1186
let count = or_panic ! ( stmt. copy_out( & [ ] , & mut buf) ) ;
1187
1187
assert_eq ! ( count, 4 ) ;
@@ -1200,7 +1200,7 @@ fn test_copy_out_error() {
1200
1200
CREATE TEMPORARY TABLE foo (id INT);
1201
1201
INSERT INTO foo (id) VALUES (0), (1), (2), (3)" ,
1202
1202
) ) ;
1203
- let stmt = or_panic ! ( conn. prepare( "COPY (SELECT id FROM foo ORDER BY id) TO STDOUT (OIDS)" , ) ) ;
1203
+ let stmt = or_panic ! ( conn. prepare( "COPY (SELECT id FROM foo ORDER BY id) TO STDOUT (OIDS)" ) ) ;
1204
1204
let mut buf = vec ! [ ] ;
1205
1205
let err = stmt. copy_out ( & [ ] , & mut buf) . unwrap_err ( ) ;
1206
1206
match err. as_db ( ) {
@@ -1363,28 +1363,28 @@ fn test_transaction_isolation_level() {
1363
1363
or_panic!( conn. transaction_isolation( ) )
1364
1364
) ;
1365
1365
or_panic ! ( conn. set_transaction_config(
1366
- transaction:: Config :: new( ) . isolation_level( IsolationLevel :: ReadUncommitted , ) ,
1366
+ transaction:: Config :: new( ) . isolation_level( IsolationLevel :: ReadUncommitted ) ,
1367
1367
) ) ;
1368
1368
assert_eq ! (
1369
1369
IsolationLevel :: ReadUncommitted ,
1370
1370
or_panic!( conn. transaction_isolation( ) )
1371
1371
) ;
1372
1372
or_panic ! ( conn. set_transaction_config(
1373
- transaction:: Config :: new( ) . isolation_level( IsolationLevel :: RepeatableRead , ) ,
1373
+ transaction:: Config :: new( ) . isolation_level( IsolationLevel :: RepeatableRead ) ,
1374
1374
) ) ;
1375
1375
assert_eq ! (
1376
1376
IsolationLevel :: RepeatableRead ,
1377
1377
or_panic!( conn. transaction_isolation( ) )
1378
1378
) ;
1379
1379
or_panic ! ( conn. set_transaction_config(
1380
- transaction:: Config :: new( ) . isolation_level( IsolationLevel :: Serializable , ) ,
1380
+ transaction:: Config :: new( ) . isolation_level( IsolationLevel :: Serializable ) ,
1381
1381
) ) ;
1382
1382
assert_eq ! (
1383
1383
IsolationLevel :: Serializable ,
1384
1384
or_panic!( conn. transaction_isolation( ) )
1385
1385
) ;
1386
1386
or_panic ! ( conn. set_transaction_config(
1387
- transaction:: Config :: new( ) . isolation_level( IsolationLevel :: ReadCommitted , ) ,
1387
+ transaction:: Config :: new( ) . isolation_level( IsolationLevel :: ReadCommitted ) ,
1388
1388
) ) ;
1389
1389
assert_eq ! (
1390
1390
IsolationLevel :: ReadCommitted ,
0 commit comments