@@ -403,7 +403,7 @@ fn test_lazy_query() {
403
403
or_panic ! ( trans. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] ) ) ;
404
404
let stmt = or_panic ! ( trans. prepare( "INSERT INTO foo (id) VALUES ($1)" ) ) ;
405
405
let values = vec ! ( 0i32 , 1 , 2 , 3 , 4 , 5 ) ;
406
- for value in values. iter ( ) {
406
+ for value in & values {
407
407
or_panic ! ( stmt. execute( & [ value] ) ) ;
408
408
}
409
409
let stmt = or_panic ! ( trans. prepare( "SELECT id FROM foo ORDER BY id" ) ) ;
@@ -534,13 +534,13 @@ fn test_get_off_by_one() {
534
534
535
535
#[ test]
536
536
fn test_custom_notice_handler ( ) {
537
- static mut count : usize = 0 ;
537
+ static mut COUNT : usize = 0 ;
538
538
struct Handler ;
539
539
540
540
impl HandleNotice for Handler {
541
541
fn handle_notice ( & mut self , notice : DbError ) {
542
542
assert_eq ! ( "note" , notice. message) ;
543
- unsafe { count += 1 ; }
543
+ unsafe { COUNT += 1 ; }
544
544
}
545
545
}
546
546
@@ -554,7 +554,7 @@ fn test_custom_notice_handler() {
554
554
END; $$ LANGUAGE plpgsql" , & [ ] ) ) ;
555
555
or_panic ! ( conn. execute( "SELECT pg_temp.note()" , & [ ] ) ) ;
556
556
557
- assert_eq ! ( unsafe { count } , 1 ) ;
557
+ assert_eq ! ( unsafe { COUNT } , 1 ) ;
558
558
}
559
559
560
560
#[ test]
@@ -1069,8 +1069,8 @@ fn transaction_config() {
1069
1069
#[ test]
1070
1070
fn transaction_config_one_setting ( ) {
1071
1071
let conn = Connection :: connect ( "postgres://postgres@localhost" , TlsMode :: None ) . unwrap ( ) ;
1072
- conn. set_transaction_config ( & transaction:: Config :: new ( ) . read_only ( true ) ) . unwrap ( ) ;
1073
- conn. set_transaction_config ( & transaction:: Config :: new ( ) . deferrable ( true ) ) . unwrap ( ) ;
1072
+ conn. set_transaction_config ( transaction:: Config :: new ( ) . read_only ( true ) ) . unwrap ( ) ;
1073
+ conn. set_transaction_config ( transaction:: Config :: new ( ) . deferrable ( true ) ) . unwrap ( ) ;
1074
1074
}
1075
1075
1076
1076
#[ test]
0 commit comments