mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 15:21:24 +01:00
enable thread_local_initializer_can_be_made_const
There's barely enough room in the commit title for this lint's name...
This commit is contained in:
parent
3daf2229d6
commit
7e7911abcf
2 changed files with 2 additions and 3 deletions
|
|
@ -72,7 +72,6 @@ wildcard_dependencies = "warn"
|
|||
missing_errors_doc = "allow"
|
||||
missing_panics_doc = "allow"
|
||||
|
||||
thread_local_initializer_can_be_made_const = "allow"
|
||||
unnecessary_to_owned = "allow"
|
||||
|
||||
[package]
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ use crate::{database::Config, Result};
|
|||
|
||||
thread_local! {
|
||||
static READ_CONNECTION: RefCell<Option<&'static Connection>> =
|
||||
RefCell::new(None);
|
||||
const { RefCell::new(None) };
|
||||
static READ_CONNECTION_ITERATOR: RefCell<Option<&'static Connection>> =
|
||||
RefCell::new(None);
|
||||
const { RefCell::new(None) };
|
||||
}
|
||||
|
||||
struct PreparedStatementIterator<'a> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue