Minor cleanup

This commit is contained in:
Steven Fackler
2013-12-08 21:56:43 -08:00
parent cbb8b7f3bd
commit 746850d647
2 changed files with 2 additions and 4 deletions

4
lib.rs
View File

@@ -1010,9 +1010,7 @@ impl<'conn> PostgresStatement for NormalPostgresStatement<'conn> {
fn try_update(&self, params: &[&ToSql])
-> Result<uint, PostgresDbError> {
match self.execute("", 0, params) {
Some(err) => {
return Err(err);
}
Some(err) => return Err(err),
None => {}
}

View File

@@ -52,7 +52,7 @@ impl PostgresConnectionPool {
pool: ~[],
};
while pool.pool.len() < pool_size {
for _ in range(0, pool_size) {
match pool.new_connection() {
None => (),
Some(err) => return Err(err)