We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbb8b7f commit 746850dCopy full SHA for 746850d
2 files changed
lib.rs
@@ -1010,9 +1010,7 @@ impl<'conn> PostgresStatement for NormalPostgresStatement<'conn> {
1010
fn try_update(&self, params: &[&ToSql])
1011
-> Result<uint, PostgresDbError> {
1012
match self.execute("", 0, params) {
1013
- Some(err) => {
1014
- return Err(err);
1015
- }
+ Some(err) => return Err(err),
1016
None => {}
1017
}
1018
pool.rs
@@ -52,7 +52,7 @@ impl PostgresConnectionPool {
52
pool: ~[],
53
};
54
55
- while pool.pool.len() < pool_size {
+ for _ in range(0, pool_size) {
56
match pool.new_connection() {
57
None => (),
58
Some(err) => return Err(err)
0 commit comments