clippy::complexity fixes
filter_map_identity needless_bool search_is_some unit_arg map_identity needless_question_mark derivable_impls
This commit is contained in:
parent
27d8a57713
commit
d707461a1a
9 changed files with 14 additions and 33 deletions
|
@ -587,10 +587,8 @@ fn show_md_content_with_pager(content: &str, color: ColorConfig) {
|
|||
let mut print_formatted = if pager_name == "less" {
|
||||
cmd.arg("-r");
|
||||
true
|
||||
} else if ["bat", "catbat", "delta"].iter().any(|v| *v == pager_name) {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
["bat", "catbat", "delta"].iter().any(|v| *v == pager_name)
|
||||
};
|
||||
|
||||
if color == ColorConfig::Never {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue