Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unecessary itertools dependency #78

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ readme = "README.md"
bincode = "1.3"
either = "1.11"
fnv = "1"
itertools = ">=0.10, <= 0.12"
once_cell = "1"
nom = "7.1"
quick-xml = ">=0.28, <= 0.31"
Expand Down
3 changes: 1 addition & 2 deletions src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#![allow(unused)]

use fnv::{FnvHashMap, FnvHashSet};
use itertools::Itertools;
use once_cell::sync::Lazy;
use regex::{Regex, RegexBuilder};

Expand Down Expand Up @@ -248,7 +247,7 @@ pub const PLUS_CHARS: &str = r"\+\x{FF0B}";
pub static VALID_ALPHA: Lazy<String> = Lazy::new(|| {
let mut string = String::new();
let clean = Regex::new(r"[, \[\]]").unwrap();
let alpha = ALPHA_MAPPINGS.keys().join("");
let alpha = ALPHA_MAPPINGS.keys().collect::<String>();

string.push_str(&clean.replace(&alpha, ""));
string.push_str(&clean.replace(&alpha.to_lowercase(), ""));
Expand Down
Loading