Update dependency filesize to v10.1.1 #116
@ -5,7 +5,7 @@ use diesel::result::{DatabaseErrorKind, Error};
|
|||||||
use diesel::{Connection, PgConnection};
|
use diesel::{Connection, PgConnection};
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
thread_local! {
|
thread_local! {
|
||||||
static POSTGRES_CONNECTION: RefCell<Option<PgConnection>> = RefCell::new(None);
|
static POSTGRES_CONNECTION: RefCell<Option<PgConnection>> = const { RefCell::new(None) };
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Execute a request on the database
|
/// Execute a request on the database
|
||||||
|
Loading…
Reference in New Issue
Block a user