Skip to content

Commit 746850d

Browse files
committed
Minor cleanup
1 parent cbb8b7f commit 746850d

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,9 +1010,7 @@ impl<'conn> PostgresStatement for NormalPostgresStatement<'conn> {
10101010
fn try_update(&self, params: &[&ToSql])
10111011
-> Result<uint, PostgresDbError> {
10121012
match self.execute("", 0, params) {
1013-
Some(err) => {
1014-
return Err(err);
1015-
}
1013+
Some(err) => return Err(err),
10161014
None => {}
10171015
}
10181016

pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl PostgresConnectionPool {
5252
pool: ~[],
5353
};
5454

55-
while pool.pool.len() < pool_size {
55+
for _ in range(0, pool_size) {
5656
match pool.new_connection() {
5757
None => (),
5858
Some(err) => return Err(err)

0 commit comments

Comments
 (0)