@@ -407,8 +407,6 @@ fn test_lazy_query() {
407407 let stmt = or_fail ! ( trans. prepare( "SELECT id FROM foo ORDER BY id" ) ) ;
408408 let result = or_fail ! ( trans. lazy_query( & stmt, [ ] , 2 ) ) ;
409409 assert_eq ! ( values, result. map( |row| row. unwrap( ) . get( 0 u) ) . collect( ) ) ;
410-
411- trans. set_rollback ( ) ;
412410}
413411
414412#[ test]
@@ -475,9 +473,7 @@ fn test_too_few_params() {
475473#[ test]
476474fn test_too_many_params ( ) {
477475 let conn = or_fail ! ( PostgresConnection :: connect( "postgres://postgres@localhost" , & NoSsl ) ) ;
478- match conn. execute ( "SELECT $1::INT, $2::INT" , [ & 1i32 ,
479- & 2i32 ,
480- & 3i32 ] ) {
476+ match conn. execute ( "SELECT $1::INT, $2::INT" , [ & 1i32 , & 2i32 , & 3i32 ] ) {
481477 Err ( PgWrongParamCount { expected : 2 , actual : 3 } ) => { } ,
482478 res => fail ! ( "unexpected result {}" , res)
483479 }
@@ -538,7 +534,8 @@ fn test_custom_notice_handler() {
538534 }
539535 }
540536
541- let conn = or_fail ! ( PostgresConnection :: connect( "postgres://postgres@localhost?client_min_messages=NOTICE" , & NoSsl ) ) ;
537+ let conn = or_fail ! ( PostgresConnection :: connect(
538+ "postgres://postgres@localhost?client_min_messages=NOTICE" , & NoSsl ) ) ;
542539 conn. set_notice_handler ( box Handler ) ;
543540 or_fail ! ( conn. execute( "CREATE FUNCTION pg_temp.note() RETURNS INT AS $$
544541 BEGIN
0 commit comments