constify a couple thread_local statics
This commit is contained in:
parent
ed19532868
commit
d0873c7a11
4 changed files with 5 additions and 5 deletions
|
@ -42,7 +42,7 @@ pub struct Registry(Arc<RegistryData>);
|
|||
thread_local! {
|
||||
/// The registry associated with the thread.
|
||||
/// This allows the `WorkerLocal` type to clone the registry in its constructor.
|
||||
static REGISTRY: OnceCell<Registry> = OnceCell::new();
|
||||
static REGISTRY: OnceCell<Registry> = const { OnceCell::new() };
|
||||
}
|
||||
|
||||
struct ThreadData {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue