We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1af3757 commit a60494bCopy full SHA for a60494b
1 file changed
source/code2text/src/main.rs
@@ -149,7 +149,7 @@ fn gen_words(
149
for line in r.lines() {
150
match line {
151
Ok(l) => {
152
- lines.push(remove_chars(l));
+ lines.push(l);
153
}
154
Err(e) => {
155
eprintln!("Error: {}", e);
@@ -164,7 +164,7 @@ fn gen_words(
164
let map_data = Arc::new(Mutex::new(map));
165
166
lines.into_par_iter().for_each(|line| {
167
- let mut scan: Scanner = Scanner::new(&line);
+ let mut scan: Scanner = Scanner::new(&remove_chars(line));
168
loop {
169
let token_result = scan.scan_token();
170
match token_result {
0 commit comments