Skip to content

Commit 98c1e58

Browse files
committed
Remove the tokenizer’s pre-processing step.
1 parent 8aafbd2 commit 98c1e58

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/tokenizer.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use ast::ComponentValue::*;
1313

1414
/// Returns a `Iterator<(ComponentValue, SourceLocation)>`
1515
pub fn tokenize(input: &str) -> Tokenizer {
16-
let input = preprocess(input);
16+
let input = input.into_string();
1717
Tokenizer {
1818
length: input.len(),
1919
input: input,
@@ -30,12 +30,6 @@ impl Iterator<Node> for Tokenizer {
3030
// *********** End of public API ***********
3131

3232

33-
#[inline]
34-
fn preprocess(input: &str) -> String {
35-
input.into_string()
36-
}
37-
38-
3933
pub struct Tokenizer {
4034
input: String,
4135
length: uint, // All counted in bytes, not characters

0 commit comments

Comments
 (0)