File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ impl PostgresConnection {
145145 let mut args = args;
146146
147147 // This seems silly
148- let socket_url = format ! ( "{:s }:{:s }" , host,
148+ let socket_url = format ! ( "{}:{}" , host,
149149 port. unwrap_or_default( ~"5432 "));
150150 let addr: SocketAddr = match FromStr::from_str(socket_url) {
151151 Some(addr) => addr,
@@ -535,7 +535,7 @@ impl<'self> PostgresStatement<'self> {
535535 pub fn try_lazy_query(&'self self, row_limit: uint, params: &[&ToSql])
536536 -> Result<PostgresResult<'self>, PostgresDbError> {
537537 let id = self.next_portal_id.take();
538- let portal_name = format!(" { : s } _portal_{ } ", self.name.as_slice(), id);
538+ let portal_name = format!(" { } _portal_{ } ", self.name.as_slice(), id);
539539 self.next_portal_id.put_back(id + 1);
540540
541541 match self.bind(portal_name, params) {
You can’t perform that action at this time.
0 commit comments