Skip to content

Commit 59501fe

Browse files
committed
formatting
1 parent cef22f9 commit 59501fe

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

source/code2text/src/main.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ fn remove_chars(input: String) -> String {
126126
'\'' | '\"' | '.' => {
127127
new_value.push(' ');
128128
}
129-
_=> {
129+
_ => {
130130
new_value.push(i);
131131
}
132132
}
@@ -175,8 +175,6 @@ fn gen_words(
175175
ScanResult::Ok(val1) => {
176176
let mut v = data.lock().unwrap();
177177
let mut map = map_data.lock().unwrap();
178-
179-
180178
match val1 {
181179
Some(i) => {
182180
if i.get_type() == TokenType::Identifier {
@@ -194,7 +192,7 @@ fn gen_words(
194192
if max_t != 0 && v.len() > max_t {
195193
break;
196194
}
197-
continue;
195+
continue;
198196
}
199197
let f = s.find('_');
200198
if f != None {
@@ -206,7 +204,7 @@ fn gen_words(
206204
if max_t != 0 && v.len() > max_t {
207205
break;
208206
}
209-
continue;
207+
continue;
210208
}
211209
}
212210
}

0 commit comments

Comments
 (0)