Skip to content

Commit b9efef8

Browse files
committed
Swap to better format macro
This'll make it easier to not forget to switch back to format! when it gets updated.
1 parent 3a01ffb commit b9efef8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)