diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-08-19 17:09:16 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-08-19 17:09:16 +0200 |
commit | 5e6829c2fb79c2b7f59e38f924e2b2900c52b5d5 (patch) | |
tree | d5725002bd5b28b91edb9e6e41ce90c9f3d5063d /src/util | |
parent | dc6b4ac40a715d724ee597c995eb05ab30baa6e2 (diff) | |
download | markdown-rs-5e6829c2fb79c2b7f59e38f924e2b2900c52b5d5.tar.gz markdown-rs-5e6829c2fb79c2b7f59e38f924e2b2900c52b5d5.tar.bz2 markdown-rs-5e6829c2fb79c2b7f59e38f924e2b2900c52b5d5.zip |
Refactor to move more things to `util/`
Diffstat (limited to '')
-rw-r--r-- | src/util/classify_character.rs | 2 | ||||
-rw-r--r-- | src/util/constant.rs (renamed from src/constant.rs) | 0 | ||||
-rw-r--r-- | src/util/decode_character_reference.rs | 2 | ||||
-rw-r--r-- | src/util/mod.rs | 2 | ||||
-rw-r--r-- | src/util/slice.rs | 2 | ||||
-rw-r--r-- | src/util/unicode.rs (renamed from src/unicode.rs) | 0 |
6 files changed, 5 insertions, 3 deletions
diff --git a/src/util/classify_character.rs b/src/util/classify_character.rs index b938502..79ed46a 100644 --- a/src/util/classify_character.rs +++ b/src/util/classify_character.rs @@ -1,6 +1,6 @@ //! Utilities to classify characters as whitespace, punctuation, or rest. -use crate::unicode::PUNCTUATION; +use crate::util::unicode::PUNCTUATION; /// Character kinds. #[derive(Debug, PartialEq, Eq)] diff --git a/src/constant.rs b/src/util/constant.rs index 0c82378..0c82378 100644 --- a/src/constant.rs +++ b/src/util/constant.rs diff --git a/src/util/decode_character_reference.rs b/src/util/decode_character_reference.rs index 30b7853..d4c983a 100644 --- a/src/util/decode_character_reference.rs +++ b/src/util/decode_character_reference.rs @@ -1,6 +1,6 @@ //! Decode character references. -use crate::constant::CHARACTER_REFERENCES; +use crate::util::constant::CHARACTER_REFERENCES; use alloc::string::{String, ToString}; /// Decode named character references. diff --git a/src/util/mod.rs b/src/util/mod.rs index 022c7d6..d2ec0ed 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -1,6 +1,7 @@ //! Utilities used when processing markdown. pub mod classify_character; +pub mod constant; pub mod decode_character_reference; pub mod edit_map; pub mod encode; @@ -8,3 +9,4 @@ pub mod normalize_identifier; pub mod sanitize_uri; pub mod skip; pub mod slice; +pub mod unicode; diff --git a/src/util/slice.rs b/src/util/slice.rs index 5dcc352..0734d78 100644 --- a/src/util/slice.rs +++ b/src/util/slice.rs @@ -1,7 +1,7 @@ //! Deal with bytes. -use crate::constant::TAB_SIZE; use crate::event::{Event, Kind, Point}; +use crate::util::constant::TAB_SIZE; use alloc::string::String; use core::str; diff --git a/src/unicode.rs b/src/util/unicode.rs index 2b79a88..2b79a88 100644 --- a/src/unicode.rs +++ b/src/util/unicode.rs |