File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -567,7 +567,7 @@ impl InnerPostgresConnection {
567567
568568 fn prepare < ' a > ( & mut self , query : & str , conn : & ' a PostgresConnection )
569569 -> PostgresResult < PostgresStatement < ' a > > {
570- let stmt_name = format ! ( "s{}" , self . next_stmt_id) . into_strbuf ( ) ;
570+ let stmt_name = format_strbuf ! ( "s{}" , self . next_stmt_id) ;
571571 self . next_stmt_id += 1 ;
572572
573573 try_pg ! ( self . write_messages( [
@@ -1117,7 +1117,7 @@ impl<'conn> PostgresStatement<'conn> {
11171117 -> PostgresResult < PostgresRows < ' a > > {
11181118 let id = self . next_portal_id . get ( ) ;
11191119 self . next_portal_id . set ( id + 1 ) ;
1120- let portal_name = format ! ( "{}p{}" , self . name, id) . into_strbuf ( ) ;
1120+ let portal_name = format_strbuf ! ( "{}p{}" , self . name, id) ;
11211121
11221122 try!( self . inner_execute ( portal_name. as_slice ( ) , row_limit, params) ) ;
11231123
You can’t perform that action at this time.
0 commit comments