Skip to content

Commit bc04239

Browse files
committed
Rustfmt
1 parent 6fea762 commit bc04239

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

src/lib.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ impl InnerConnection {
746746
try!(self.wait_for_ready());
747747
return DbError::new(fields);
748748
}
749-
_ => bad_response!(self)
749+
_ => bad_response!(self),
750750
};
751751
match try!(self.read_message()) {
752752
CommandComplete { .. } => {}
@@ -973,7 +973,12 @@ impl Connection {
973973
/// ```
974974
pub fn query<'a>(&'a self, query: &str, params: &[&ToSql]) -> Result<Rows<'a>> {
975975
let (param_types, columns) = try!(self.conn.borrow_mut().raw_prepare("", query));
976-
let stmt = Statement::new(self, "".to_owned(), param_types, columns, Cell::new(0), true);
976+
let stmt = Statement::new(self,
977+
"".to_owned(),
978+
param_types,
979+
columns,
980+
Cell::new(0),
981+
true);
977982
stmt.into_query(params)
978983
}
979984

src/rows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl<'a> Row<'a> {
182182
let conn = self.stmt.conn().conn.borrow();
183183
match self.data[idx] {
184184
Some(ref data) => FromSql::from_sql(ty, &mut &**data, &SessionInfo::new(&*conn)),
185-
None => FromSql::from_sql_null(ty, &SessionInfo::new(&*conn))
185+
None => FromSql::from_sql_null(ty, &SessionInfo::new(&*conn)),
186186
}
187187
}
188188

src/stmt.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,8 @@ impl<'conn> StatementInternals<'conn> for Statement<'conn> {
6565

6666
fn into_query(self, params: &[&ToSql]) -> Result<Rows<'conn>> {
6767
check_desync!(self.conn);
68-
self.inner_query("", 0, params).map(|(buf, _)| {
69-
Rows::new_owned(self, buf.into_iter().collect())
70-
})
68+
self.inner_query("", 0, params)
69+
.map(|(buf, _)| Rows::new_owned(self, buf.into_iter().collect()))
7170
}
7271
}
7372

0 commit comments

Comments
 (0)