Skip to content

Commit

Permalink
Fixing bug when external use
Browse files Browse the repository at this point in the history
  • Loading branch information
AuracleTech committed Feb 13, 2024
1 parent edb4c65 commit 55718a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "MIT"
bytecount = "0.6.7"
lazy_static = "1.4.0"
regex = "1.10.3"
serde = { version = "1.0.196", optional = true }
serde = { version = "1.0.196", features = ["derive"], optional = true }

[dev-dependencies]
criterion = { version = "0.5.1", features = ["html_reports"] }
Expand Down
5 changes: 1 addition & 4 deletions tests/experiment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,7 @@ use vulkanalia::prelude::v1_0::*;";
fn serialization_collection() {
let mut tokenizer = Tokenizer::new(SOURCE_SERIALIZATION, &DUOS_RUST);

let mut tokens = Vec::new();
while let Some(token) = tokenizer.next().unwrap() {
tokens.push(token);
}
let tokens = tokenizer.tokenize_all().unwrap();

let serialized = serde_json::to_string(&tokens).unwrap();
let mut deserialized: Vec<jayce::Token<&str>> = serde_json::from_str(&serialized).unwrap();
Expand Down

0 comments on commit 55718a3

Please sign in to comment.