Skip to content

Commit

Permalink
remove itertools
Browse files Browse the repository at this point in the history
better impl with collect
  • Loading branch information
carloskiki committed Sep 2, 2024
1 parent b792151 commit f8bfc64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
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

0 comments on commit f8bfc64

Please sign in to comment.