Rocket

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit a62248f7ceb60e3ecd0f60cfb08b39a15358aaf1
parent 7b4747ff1c593b06fb0a980620c4b996de669624
Author: Sergio Benitez <sb@sergio.bz>
Date:   Fri, 17 Aug 2018 11:16:36 -0700

Consistently use 'diesel_postgres_pool' feature.

Diffstat:
Mcontrib/lib/Cargo.toml | 2+-
Mcontrib/lib/src/databases.rs | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/lib/Cargo.toml b/contrib/lib/Cargo.toml @@ -23,7 +23,7 @@ static_files = [] database_pool_codegen = ["rocket_contrib_codegen", "rocket_contrib_codegen/database_attribute"] database_pool = ["r2d2", "database_pool_codegen"] # External features. -diesel_pg_pool = ["database_pool", "diesel/postgres", "diesel/r2d2"] +diesel_postgres_pool = ["database_pool", "diesel/postgres", "diesel/r2d2"] diesel_sqlite_pool = ["database_pool", "diesel/sqlite", "diesel/r2d2"] diesel_mysql_pool = ["database_pool", "diesel/mysql", "diesel/r2d2"] postgres_pool = ["database_pool", "postgres", "r2d2_postgres"] diff --git a/contrib/lib/src/databases.rs b/contrib/lib/src/databases.rs @@ -705,7 +705,7 @@ impl Poolable for diesel::SqliteConnection { } } -#[cfg(feature = "diesel_pg_pool")] +#[cfg(feature = "diesel_postgres_pool")] impl Poolable for diesel::PgConnection { type Manager = diesel::r2d2::ConnectionManager<diesel::PgConnection>; type Error = r2d2::Error;