summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/state.rs b/src/state.rs
index 4f365b9..75c1e11 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -1,10 +1,5 @@
use std::fmt::Debug;
-use axum::{
- async_trait,
- extract::{FromRef, FromRequestParts},
- http::request::Parts,
-};
use sqlx::{Pool, Postgres};
use crate::Error;
@@ -30,16 +25,3 @@ impl AppState {
Ok(Self { pool })
}
}
-
-#[async_trait]
-impl<S> FromRequestParts<S> for AppState
-where
- Self: FromRef<S>,
- S: Send + Sync + Debug,
-{
- type Rejection = Error;
-
- async fn from_request_parts(_parts: &mut Parts, state: &S) -> Result<Self, Self::Rejection> {
- Ok(Self::from_ref(state))
- }
-}