Fixes for Rust updates
This commit is contained in:
parent
476dd0c740
commit
410359e329
2
lib.rs
2
lib.rs
@ -447,7 +447,7 @@ impl InnerPostgresConnection {
|
||||
payload: payload
|
||||
}),
|
||||
ParameterStatus { parameter, value } =>
|
||||
debug!("Parameter %s = %s", parameter, value),
|
||||
debug!("Parameter {} = {}", parameter, value),
|
||||
msg => return msg
|
||||
}
|
||||
}
|
||||
|
2
pool.rs
2
pool.rs
@ -65,7 +65,7 @@ impl PostgresConnectionPool {
|
||||
pub fn new(url: &str, pool_size: uint) -> PostgresConnectionPool {
|
||||
match PostgresConnectionPool::try_new(url, pool_size) {
|
||||
Ok(pool) => pool,
|
||||
Err(err) => fail!("Unable to initialize pool: %s", err.to_str())
|
||||
Err(err) => fail!("Unable to initialize pool: {}", err.to_str())
|
||||
}
|
||||
}
|
||||
|
||||
|
2
tests.rs
2
tests.rs
@ -59,7 +59,7 @@ fn test_prepare_err() {
|
||||
let conn = PostgresConnection::connect("postgres://postgres@localhost");
|
||||
match conn.try_prepare("invalid sql statment") {
|
||||
Err(PostgresDbError { code: SyntaxError, position: Some(Position(1)), _ }) => (),
|
||||
resp => fail!("Unexpected result %?", resp)
|
||||
resp => fail!("Unexpected result {:?}", resp)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user