Skip to content

Commit

Permalink
remove once cell
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaSd committed Aug 20, 2024
1 parent cdd18f8 commit 30cd772
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
7 changes: 0 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/irust_repl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ repository = "https://github.com/sigmaSd/IRust/tree/master/crates/irust_repl"
license = "MIT"

[dependencies]
once_cell = "1.18.0"
serde = { version = "1.0.188", features = ["derive"], optional = true }
uuid = { version = "1.4.1", features = ["v4"] }

Expand Down
6 changes: 3 additions & 3 deletions crates/irust_repl/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use std::sync::LazyLock;
pub mod cargo_cmds;
use cargo_cmds::*;
mod executor;
Expand All @@ -11,7 +12,6 @@ pub use edition::Edition;
mod compile_mode;
pub use compile_mode::CompileMode;

use once_cell::sync::Lazy;
mod utils;

use std::{
Expand All @@ -22,8 +22,8 @@ use std::{

type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;

pub static DEFAULT_EVALUATOR: Lazy<[String; 2]> =
Lazy::new(|| ["println!(\"{:?}\", {\n".into(), "\n});".into()]);
pub static DEFAULT_EVALUATOR: LazyLock<[String; 2]> =
LazyLock::new(|| ["println!(\"{:?}\", {\n".into(), "\n});".into()]);

pub struct EvalConfig<'a, S: ToString> {
pub input: S,
Expand Down

0 comments on commit 30cd772

Please sign in to comment.