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:
Charles Hall 2024-05-21 22:11:19 -07:00
parent 3daf2229d6
commit 7e7911abcf
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
2 changed files with 2 additions and 3 deletions

View file

@ -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]

View file

@ -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> {