|
51 | 51 | //! } |
52 | 52 | //! ``` |
53 | 53 | #![doc(html_root_url="https://sfackler.github.io/doc")] |
54 | | -#![feature(globs, macro_rules, struct_variant, phase, unsafe_destructor, slicing_syntax, default_type_params, if_let)] |
| 54 | +#![feature(globs, macro_rules, phase, unsafe_destructor, slicing_syntax, default_type_params, if_let)] |
55 | 55 | #![warn(missing_docs)] |
56 | 56 |
|
57 | 57 | extern crate openssl; |
@@ -310,8 +310,7 @@ impl Drop for InnerConnection { |
310 | 310 | } |
311 | 311 |
|
312 | 312 | impl InnerConnection { |
313 | | - fn connect<T>(params: T, ssl: &SslMode) |
314 | | - -> result::Result<InnerConnection, ConnectError> |
| 313 | + fn connect<T>(params: T, ssl: &SslMode) -> result::Result<InnerConnection, ConnectError> |
315 | 314 | where T: IntoConnectParams { |
316 | 315 | let params = try!(params.into_connect_params()); |
317 | 316 | let stream = try!(io::initialize_stream(¶ms, ssl)); |
@@ -565,8 +564,7 @@ impl InnerConnection { |
565 | 564 | Ok(()) |
566 | 565 | } |
567 | 566 |
|
568 | | - fn set_type_names<'a, I>(&mut self, mut it: I) -> Result<()> |
569 | | - where I: Iterator<&'a mut Type> { |
| 567 | + fn set_type_names<'a, I>(&mut self, mut it: I) -> Result<()> where I: Iterator<&'a mut Type> { |
570 | 568 | for ty in it { |
571 | 569 | if let &Type::Unknown { oid, ref mut name } = ty { |
572 | 570 | *name = try!(self.get_type_name(oid)); |
@@ -1081,8 +1079,7 @@ impl<'conn> Statement<'conn> { |
1081 | 1079 | conn.close_statement(self.name[]) |
1082 | 1080 | } |
1083 | 1081 |
|
1084 | | - fn inner_execute(&self, portal_name: &str, row_limit: i32, params: &[&ToSql]) |
1085 | | - -> Result<()> { |
| 1082 | + fn inner_execute(&self, portal_name: &str, row_limit: i32, params: &[&ToSql]) -> Result<()> { |
1086 | 1083 | let mut conn = self.conn.conn.borrow_mut(); |
1087 | 1084 | if self.param_types.len() != params.len() { |
1088 | 1085 | return Err(Error::PgWrongParamCount { |
@@ -1122,8 +1119,7 @@ impl<'conn> Statement<'conn> { |
1122 | 1119 | } |
1123 | 1120 | } |
1124 | 1121 |
|
1125 | | - fn lazy_query<'a>(&'a self, row_limit: i32, params: &[&ToSql]) |
1126 | | - -> Result<Rows<'a>> { |
| 1122 | + fn lazy_query<'a>(&'a self, row_limit: i32, params: &[&ToSql]) -> Result<Rows<'a>> { |
1127 | 1123 | let id = self.next_portal_id.get(); |
1128 | 1124 | self.next_portal_id.set(id + 1); |
1129 | 1125 | let portal_name = format!("{}p{}", self.name, id); |
|
0 commit comments