diff --git a/crates/alexandrie/src/frontend/categories.rs b/crates/alexandrie/src/frontend/categories.rs index e8dcb318..c6750c16 100644 --- a/crates/alexandrie/src/frontend/categories.rs +++ b/crates/alexandrie/src/frontend/categories.rs @@ -45,7 +45,7 @@ pub(crate) async fn get( return Ok(Either::E2(Redirect::to("/account/login"))); } - let db: &crate::db::database::Database = &state.db; + let db = &state.db; let state = Arc::clone(&state); let transaction = db.transaction(move |conn| { diff --git a/crates/alexandrie/src/frontend/categories_index.rs b/crates/alexandrie/src/frontend/categories_index.rs index 7ff6ae35..a069f245 100644 --- a/crates/alexandrie/src/frontend/categories_index.rs +++ b/crates/alexandrie/src/frontend/categories_index.rs @@ -23,7 +23,7 @@ pub(crate) async fn get( return Ok(Either::E2(Redirect::to("/account/login"))); } - let db: &crate::db::database::Database = &state.db; + let db = &state.db; let state = Arc::clone(&state); let transaction = db.transaction(move |conn| { diff --git a/crates/alexandrie/src/frontend/keywords.rs b/crates/alexandrie/src/frontend/keywords.rs index bc7694cb..fa1c2c1c 100644 --- a/crates/alexandrie/src/frontend/keywords.rs +++ b/crates/alexandrie/src/frontend/keywords.rs @@ -46,7 +46,7 @@ pub(crate) async fn get( return Ok(Either::E2(Redirect::to("/account/login"))); } - let db: &crate::db::database::Database = &state.db; + let db = &state.db; let state = Arc::clone(&state); let transaction = db.transaction(move |conn| { diff --git a/crates/alexandrie/src/frontend/keywords_index.rs b/crates/alexandrie/src/frontend/keywords_index.rs index 494e7d53..a72d9ebf 100644 --- a/crates/alexandrie/src/frontend/keywords_index.rs +++ b/crates/alexandrie/src/frontend/keywords_index.rs @@ -23,7 +23,7 @@ pub(crate) async fn get( return Ok(Either::E2(Redirect::to("/account/login"))); } - let db: &crate::db::database::Database = &state.db; + let db = &state.db; let state = Arc::clone(&state); let transaction = db.transaction(move |conn| {