clippy
This commit is contained in:
1 parent
ff1c195036
commit
0365c2a2a2
3 files changed
+13
-14
No files matched your search
@@ -1,3 +1,2 @@
|
|||||||
/target
|
/target
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
.vscode
|
|
||||||
@@ -104,24 +104,24 @@ pub fn compare2_format(str1: &str, str2: &str) -> (String, String) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
match &last_from_also_colored {
|
match last_from_also_colored {
|
||||||
&IsColored::False(_) => {
|
IsColored::False(_) => {
|
||||||
current_from.add_style(&reset);
|
current_from.add_style(&reset);
|
||||||
}
|
}
|
||||||
&IsColored::True(_) => {
|
IsColored::True(_) => {
|
||||||
current_from.add_style(&red_text);
|
current_from.add_style(&red_text);
|
||||||
}
|
}
|
||||||
&IsColored::None => (),
|
IsColored::None => (),
|
||||||
}
|
}
|
||||||
froms.push(current_from);
|
froms.push(current_from);
|
||||||
match &last_to_also_colored {
|
match last_to_also_colored {
|
||||||
&IsColored::False(_) => {
|
IsColored::False(_) => {
|
||||||
current_to.add_style(&reset);
|
current_to.add_style(&reset);
|
||||||
}
|
}
|
||||||
&IsColored::True(_) => {
|
IsColored::True(_) => {
|
||||||
current_to.add_style(&blue_text);
|
current_to.add_style(&blue_text);
|
||||||
}
|
}
|
||||||
&IsColored::None => (),
|
IsColored::None => (),
|
||||||
}
|
}
|
||||||
tos.push(current_to);
|
tos.push(current_to);
|
||||||
let first_str: String = froms.into_iter().map(String::from).collect();
|
let first_str: String = froms.into_iter().map(String::from).collect();
|
||||||
@@ -151,14 +151,14 @@ pub fn compare_mini_format<T>(
|
|||||||
color_false,
|
color_false,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
match &last_operation_is_colored {
|
match last_operation_is_colored {
|
||||||
&IsColored::False(_) => {
|
IsColored::False(_) => {
|
||||||
current_color.add_style(color_false);
|
current_color.add_style(color_false);
|
||||||
}
|
}
|
||||||
&IsColored::True(_) => {
|
IsColored::True(_) => {
|
||||||
current_color.add_style(color);
|
current_color.add_style(color);
|
||||||
}
|
}
|
||||||
&IsColored::None => (),
|
IsColored::None => (),
|
||||||
}
|
}
|
||||||
text.push(current_color);
|
text.push(current_color);
|
||||||
text.into_iter().map(String::from).collect()
|
text.into_iter().map(String::from).collect()
|
||||||
|
|||||||
+1
-1
Submodule lda_strdist updated: 2dc18c3a38...cc939b19f5.
Reference in new issue
Block a user