From fd9b104bd4ea1994a5d8965ebe64c8249e6220f5 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Mon, 24 Feb 2014 21:34:07 -0800 Subject: [PATCH] Remove an extra to_str --- src/pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pool.rs b/src/pool.rs index 3a47c06f..b2fcbcea 100644 --- a/src/pool.rs +++ b/src/pool.rs @@ -72,7 +72,7 @@ impl PostgresConnectionPool { -> PostgresConnectionPool { match PostgresConnectionPool::try_new(url, ssl, pool_size) { Ok(pool) => pool, - Err(err) => fail!("Unable to initialize pool: {}", err.to_str()) + Err(err) => fail!("Unable to initialize pool: {}", err) } }