From 410359e3299fc52d473bd61223b2d6108cfc38b3 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sat, 19 Oct 2013 10:13:39 -0700 Subject: [PATCH] Fixes for Rust updates --- lib.rs | 2 +- pool.rs | 2 +- tests.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib.rs b/lib.rs index 52727dff..6aa3bf5c 100644 --- a/lib.rs +++ b/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 } } diff --git a/pool.rs b/pool.rs index 56f41c86..c21ecec2 100644 --- a/pool.rs +++ b/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()) } } diff --git a/tests.rs b/tests.rs index 027e969f..3474986c 100644 --- a/tests.rs +++ b/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) } }