From 26d8aed5540677d539957dea16f95491499eff58 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Fri, 29 Nov 2024 12:36:59 +0100 Subject: Use Expo on the AppState This because since Rust 1.83 it is suggested to not use the static reference cloning --- src/state.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/state.rs') diff --git a/src/state.rs b/src/state.rs index 700f6ab..546a609 100644 --- a/src/state.rs +++ b/src/state.rs @@ -1,5 +1,6 @@ use std::sync::Arc; +use expo_push_notification_client::Expo; use tokio_postgres::Client; #[derive(Clone)] @@ -7,4 +8,7 @@ use tokio_postgres::Client; pub struct AppState { /// PostgreSQL client synced via Arc pub client: Arc, + + /// Expo connection + pub expo: Arc, } -- cgit v1.2.3-18-g5258