From 800ee06b1a59bf7bb6bb73016021bd9f28477aa4 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 22 Aug 2022 22:32:37 +0200 Subject: Fix reference --- server/src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src') diff --git a/server/src/db.rs b/server/src/db.rs index b08c38c..3c1467e 100644 --- a/server/src/db.rs +++ b/server/src/db.rs @@ -17,7 +17,7 @@ pub async fn setup() -> Result<(), AppError> { pub unsafe fn get_client() -> &'static PgPool { match &CONNECTION { - Some(client) => &client, + Some(client) => client, None => panic!("Connection not established!"), } } -- cgit v1.2.3-18-g5258