summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/state.rs b/src/state.rs
index 75c1e11..771647d 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -1,12 +1,13 @@
use std::fmt::Debug;
-use sqlx::{Pool, Postgres};
+use axum::extract::FromRef;
+use sqlx::PgPool;
use crate::Error;
-#[derive(Debug, Clone)]
+#[derive(Debug, Clone, FromRef)]
pub struct AppState {
- pub pool: Pool<Postgres>,
+ pub pool: PgPool,
}
impl AppState {