Consistently use 'diesel_postgres_pool' feature.

This commit is contained in:
Sergio Benitez 2018-08-17 11:16:36 -07:00
parent 7b4747ff1c
commit a62248f7ce
2 changed files with 2 additions and 2 deletions

View File

@ -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"]

View File

@ -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;