Skip to content

Adopt LazyLock for global singletons in Rust 1.80+Β #2329

@lalitb

Description

@lalitb
          Using a [`LazyLock`](https://doc.rust-lang.org/std/sync/struct.LazyLock.html) here should be even simpler but it requires `1.80+` version of Rust. We could probably add a TODO or create an issue to revisit this when we move to that version of Rust.

Originally posted by @utpilla in #2326 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions