fix clippy::single_char_pattern perf findings
This commit is contained in:
parent
1796de7bb1
commit
97e844a032
19 changed files with 36 additions and 36 deletions
|
@ -989,7 +989,7 @@ fn attributes(it: &clean::Item) -> Vec<String> {
|
|||
.iter()
|
||||
.filter_map(|attr| {
|
||||
if ALLOWED_ATTRIBUTES.contains(&attr.name_or_empty()) {
|
||||
Some(pprust::attribute_to_string(attr).replace("\n", "").replace(" ", " "))
|
||||
Some(pprust::attribute_to_string(attr).replace('\n', "").replace(" ", " "))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue