From b0261f6793ca12e573b50e38f5e54b71a18be42d Mon Sep 17 00:00:00 2001 From: CrabeDeFrance Date: Mon, 4 Dec 2023 19:45:58 +0100 Subject: [PATCH] Issue #183 : fix : remove wrongly expanded type --- crates/alexandrie/src/frontend/categories.rs | 2 +- crates/alexandrie/src/frontend/categories_index.rs | 2 +- crates/alexandrie/src/frontend/keywords.rs | 2 +- crates/alexandrie/src/frontend/keywords_index.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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| {