diff options
author | Santo Cariotti <santo@dcariotti.me> | 2022-08-22 22:32:37 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2022-08-22 22:32:37 +0200 |
commit | 800ee06b1a59bf7bb6bb73016021bd9f28477aa4 (patch) | |
tree | cc6ea892336750a756ce9dcad88fa488f5beb58c /server/src | |
parent | aff24b4ce5be0172e34e02e06e7b5fa43026c4bf (diff) |
Fix reference
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/db.rs | 2 |
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!"), } } |