Skip to content

Commit

Permalink
Remove once_cell dependency and unused code in main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
DaviRain-Su committed Oct 23, 2023
1 parent 8c8ff96 commit 7b9aeeb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ anyhow = "1.0.75"
env_logger = "0.10.0"
global = "0.4.3"
thiserror = "1.0.50"
once_cell = "1.18.0"
nom = "7.1.3"
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ pub mod parser;
pub mod repl;
pub mod token;

// static NULL: object::null::Null = object::null::Null;

fn main() -> anyhow::Result<()> {
env_logger::init();
println!(
Expand Down
5 changes: 0 additions & 5 deletions src/object/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ impl From<bool> for Object {
}
}

impl From<once_cell::sync::Lazy<Boolean>> for Object {
fn from(value: once_cell::sync::Lazy<Boolean>) -> Self {
Self::Boolean(*value)
}
}
impl From<Integer> for Object {
fn from(integer: Integer) -> Self {
Self::Integer(integer)
Expand Down

0 comments on commit 7b9aeeb

Please sign in to comment.