mirror of https://github.com/rwf2/Rocket.git
Fix database pool type in state guide.
This commit is contained in:
parent
2dbc592ef1
commit
1914706630
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue