summaryrefslogtreecommitdiffstats
path: root/src/external_editor/argument_tolkenizer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/external_editor/argument_tolkenizer.rs')
-rw-r--r--src/external_editor/argument_tolkenizer.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/external_editor/argument_tolkenizer.rs b/src/external_editor/argument_tolkenizer.rs
index f1b007a..e3c0e54 100644
--- a/src/external_editor/argument_tolkenizer.rs
+++ b/src/external_editor/argument_tolkenizer.rs
@@ -1,3 +1,5 @@
+use std::iter::Iterator;
+
#[derive(Clone, Copy, Debug, PartialEq)]
enum State {
Normal,
@@ -7,7 +9,7 @@ enum State {
WhiteSpace,
}
-pub fn tolkenize(input: &str) -> Option<Vec<String>> {
+pub(super) fn tolkenize(input: &str) -> Option<Vec<String>> {
let mut previous_state = State::Normal;
let mut state = State::Normal;
let mut token_start: usize = 0;