mirror of https://github.com/rwf2/Rocket.git
Fix database pool type in state guide.
This commit is contained in:
parent
d8ad92d083
commit
bd64064a54
|
@ -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