Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
KiraCoding committed Sep 13, 2024
1 parent 741f47f commit 7870771
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@ use rayon::iter::IndexedParallelIterator;
use rayon::slice::ParallelSlice;
use std::sync::LazyLock;

static PROGRAM: LazyLock<Program> = LazyLock::new(Program::init);

/// Returns a reference to the global [`Program`] instance.
#[inline]
pub fn program() -> &'static Program {
static PROGRAM: LazyLock<Program> = LazyLock::new(Program::init);
&PROGRAM
}

Expand Down

0 comments on commit 7870771

Please sign in to comment.