Fix database pool type in state guide.

This commit is contained in:
Richard Petrie 2018-05-04 21:32:16 -05:00 committed by Sergio Benitez
parent 2dbc592ef1
commit 1914706630
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ type SqlitePool = Pool<ConnectionManager<SqliteConnection>>;
static DATABASE_URL: &'static str = env!("DATABASE_URL");
/// Initializes a database pool.
fn init_pool() -> Pool {
fn init_pool() -> SqlitePool {
let manager = ConnectionManager::<SqliteConnection>::new(DATABASE_URL);
Pool::new(manager).expect("db pool")
}