summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-08-22 22:32:37 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-08-22 22:32:37 +0200
commit800ee06b1a59bf7bb6bb73016021bd9f28477aa4 (patch)
treecc6ea892336750a756ce9dcad88fa488f5beb58c /server
parentaff24b4ce5be0172e34e02e06e7b5fa43026c4bf (diff)
Fix reference
Diffstat (limited to 'server')
-rw-r--r--server/src/db.rs2
1 files changed, 1 insertions, 1 deletions
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!"),
}
}