diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -203,7 +203,9 @@ async fn ensure_invite_admin(db: &Db, cfg: &Config) -> anyhow::Result<()> { } } -pub async fn build(base: rocket::Rocket<rocket::Build>) -> anyhow::Result<rocket::Rocket<rocket::Build>> { +pub async fn build( + base: rocket::Rocket<rocket::Build>, +) -> anyhow::Result<rocket::Rocket<rocket::Build>> { let config = base.figment().extract::<Config>().context("reading config")?; let db = Arc::new(Db::connect(&config.database_url).await.unwrap()); |