Skip to content

Commit 2627c16

Browse files
authored
Replace once_cell crate with std equivalent (#2524)
1 parent 2c646ca commit 2627c16

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ sea-orm = { path = ".", features = ["mock", "debug-print", "tests-cfg", "postgre
5959
pretty_assertions = { version = "0.7" }
6060
time = { version = "0.3.36", features = ["macros"] }
6161
uuid = { version = "1", features = ["v4"] }
62-
once_cell = "1.8"
6362
arraystring = "0.3"
6463
dotenv = "0.15"
6564

src/executor/paginator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,11 @@ mod tests {
325325
use crate::{tests_cfg::*, ConnectionTrait, Statement};
326326
use crate::{DatabaseConnection, DbBackend, MockDatabase, Transaction};
327327
use futures_util::TryStreamExt;
328-
use once_cell::sync::Lazy;
329328
use pretty_assertions::assert_eq;
330329
use sea_query::{Alias, Expr, SelectStatement, Value};
330+
use std::sync::LazyLock;
331331

332-
static RAW_STMT: Lazy<Statement> = Lazy::new(|| {
332+
static RAW_STMT: LazyLock<Statement> = LazyLock::new(|| {
333333
Statement::from_sql_and_values(
334334
DbBackend::Postgres,
335335
r#"SELECT "fruit"."id", "fruit"."name", "fruit"."cake_id" FROM "fruit""#,

0 commit comments

Comments
 (0)