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 d8ad92d083
commit bd64064a54
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")
}