Skip to content

Commit 410359e

Browse files
committed
Fixes for Rust updates
1 parent 476dd0c commit 410359e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ impl InnerPostgresConnection {
447447
payload: payload
448448
}),
449449
ParameterStatus { parameter, value } =>
450-
debug!("Parameter %s = %s", parameter, value),
450+
debug!("Parameter {} = {}", parameter, value),
451451
msg => return msg
452452
}
453453
}

pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl PostgresConnectionPool {
6565
pub fn new(url: &str, pool_size: uint) -> PostgresConnectionPool {
6666
match PostgresConnectionPool::try_new(url, pool_size) {
6767
Ok(pool) => pool,
68-
Err(err) => fail!("Unable to initialize pool: %s", err.to_str())
68+
Err(err) => fail!("Unable to initialize pool: {}", err.to_str())
6969
}
7070
}
7171

tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn test_prepare_err() {
5959
let conn = PostgresConnection::connect("postgres://postgres@localhost");
6060
match conn.try_prepare("invalid sql statment") {
6161
Err(PostgresDbError { code: SyntaxError, position: Some(Position(1)), _ }) => (),
62-
resp => fail!("Unexpected result %?", resp)
62+
resp => fail!("Unexpected result {:?}", resp)
6363
}
6464
}
6565

0 commit comments

Comments
 (0)