Skip to content

Switch once_cell::Lazy to LazyLock when MSRV reaches 1.80Β #57

@kylebarron

Description

@kylebarron

I was able to remove almost all uses of once_cell, except for

static TOKIO_BUILDER: Lazy<Mutex<Builder>> = Lazy::new(|| Mutex::new(multi_thread()));

since it looks like LazyLock wasn't added to the stdlib until an MSRV of 1.80.

Originally posted by @kylebarron in #54 (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