refactor: move dictionary to util

This commit is contained in:
Theta-Dev 2022-10-10 12:22:27 +02:00
parent 0b9e486147
commit 1bc47b7c2d
5 changed files with 8 additions and 4 deletions

5278
src/util/dictionary.rs Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,3 +1,5 @@
pub mod dictionary;
use std::{borrow::Borrow, collections::BTreeMap, str::FromStr};
use fancy_regex::Regex;
@ -5,7 +7,7 @@ use once_cell::sync::Lazy;
use rand::Rng;
use url::Url;
use crate::{dictionary, error::Error, error::Result, model::Language};
use crate::{error::Error, error::Result, model::Language};
const CONTENT_PLAYBACK_NONCE_ALPHABET: &[u8; 64] =
b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";