We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cef22f9 commit 59501feCopy full SHA for 59501fe
1 file changed
source/code2text/src/main.rs
@@ -126,7 +126,7 @@ fn remove_chars(input: String) -> String {
126
'\'' | '\"' | '.' => {
127
new_value.push(' ');
128
}
129
- _=> {
+ _ => {
130
new_value.push(i);
131
132
@@ -175,8 +175,6 @@ fn gen_words(
175
ScanResult::Ok(val1) => {
176
let mut v = data.lock().unwrap();
177
let mut map = map_data.lock().unwrap();
178
-
179
180
match val1 {
181
Some(i) => {
182
if i.get_type() == TokenType::Identifier {
@@ -194,7 +192,7 @@ fn gen_words(
194
192
if max_t != 0 && v.len() > max_t {
195
193
break;
196
197
- continue;
+ continue;
198
199
let f = s.find('_');
200
if f != None {
@@ -206,7 +204,7 @@ fn gen_words(
206
204
207
205
208
209
210
211
212
0 commit comments