Skip to content

Replace once_cell with Lazylock builitin, once_cell causes issues. #787

@Eveeifyeve

Description

@Eveeifyeve
thread 'tokio-runtime-worker' panicked at /Users/eveeifyeve/.cargo/registry/src/index.crates.io▐
 -1949cf8c6b5b557f/once_cell-1.21.3/src/lib.rs:1311:25:                                         ▐
 Lazy instance has previously been poisoned  

octocrab/src/lib.rs

Lines 302 to 303 in 1ca87c2

static STATIC_INSTANCE: Lazy<arc_swap::ArcSwap<Octocrab>> =
Lazy::new(|| arc_swap::ArcSwap::from_pointee(Octocrab::default()));

This will bump the minimum version to 1.80.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions