build(deps): migrate usages of once_cell crate to standard library equivalents (#8030)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sanchith Hegde
2025-05-19 15:54:03 +05:30
committed by GitHub
parent da90d74bfa
commit 673cf249b0
32 changed files with 176 additions and 183 deletions

View File

@ -315,6 +315,8 @@ mod tests {
& payment_method /= gift_card
& payment_method /= card_redirect
& payment_method /= real_time_payment
& payment_method /= open_banking
& payment_method /= mobile_payment
}
}
}

View File

@ -1,10 +1,11 @@
use std::sync::LazyLock;
use euclid_macros::knowledge;
use once_cell::sync::Lazy;
use crate::{dssa::graph::euclid_graph_prelude, frontend::dir};
pub static ANALYSIS_GRAPH: Lazy<hyperswitch_constraint_graph::ConstraintGraph<dir::DirValue>> =
Lazy::new(|| {
pub static ANALYSIS_GRAPH: LazyLock<hyperswitch_constraint_graph::ConstraintGraph<dir::DirValue>> =
LazyLock::new(|| {
knowledge! {
// Payment Method should be `Card` for a CardType to be present
PaymentMethod(Card) ->> CardType(any);