@@ -403,7 +403,7 @@ fn test_lazy_query() {
403403 or_panic ! ( trans. execute( "CREATE TEMPORARY TABLE foo (id INT PRIMARY KEY)" , & [ ] ) ) ;
404404 let stmt = or_panic ! ( trans. prepare( "INSERT INTO foo (id) VALUES ($1)" ) ) ;
405405 let values = vec ! ( 0i32 , 1 , 2 , 3 , 4 , 5 ) ;
406- for value in values. iter ( ) {
406+ for value in & values {
407407 or_panic ! ( stmt. execute( & [ value] ) ) ;
408408 }
409409 let stmt = or_panic ! ( trans. prepare( "SELECT id FROM foo ORDER BY id" ) ) ;
@@ -534,13 +534,13 @@ fn test_get_off_by_one() {
534534
535535#[ test]
536536fn test_custom_notice_handler ( ) {
537- static mut count : usize = 0 ;
537+ static mut COUNT : usize = 0 ;
538538 struct Handler ;
539539
540540 impl HandleNotice for Handler {
541541 fn handle_notice ( & mut self , notice : DbError ) {
542542 assert_eq ! ( "note" , notice. message) ;
543- unsafe { count += 1 ; }
543+ unsafe { COUNT += 1 ; }
544544 }
545545 }
546546
@@ -554,7 +554,7 @@ fn test_custom_notice_handler() {
554554 END; $$ LANGUAGE plpgsql" , & [ ] ) ) ;
555555 or_panic ! ( conn. execute( "SELECT pg_temp.note()" , & [ ] ) ) ;
556556
557- assert_eq ! ( unsafe { count } , 1 ) ;
557+ assert_eq ! ( unsafe { COUNT } , 1 ) ;
558558}
559559
560560#[ test]
@@ -1069,8 +1069,8 @@ fn transaction_config() {
10691069#[ test]
10701070fn transaction_config_one_setting ( ) {
10711071 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 ( ) ;
10741074}
10751075
10761076#[ test]
0 commit comments