Skip to content

Commit a60494b

Browse files
committed
moved remove chars
1 parent 1af3757 commit a60494b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

source/code2text/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fn gen_words(
149149
for line in r.lines() {
150150
match line {
151151
Ok(l) => {
152-
lines.push(remove_chars(l));
152+
lines.push(l);
153153
}
154154
Err(e) => {
155155
eprintln!("Error: {}", e);
@@ -164,7 +164,7 @@ fn gen_words(
164164
let map_data = Arc::new(Mutex::new(map));
165165

166166
lines.into_par_iter().for_each(|line| {
167-
let mut scan: Scanner = Scanner::new(&line);
167+
let mut scan: Scanner = Scanner::new(&remove_chars(line));
168168
loop {
169169
let token_result = scan.scan_token();
170170
match token_result {

0 commit comments

Comments
 (0)