Make clippy happy

This commit is contained in:
Kerollmops 2022-07-04 12:00:03 +02:00
parent 8a64ee0c14
commit d56bf66022
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 11 additions and 11 deletions

View file

@ -111,10 +111,9 @@ fn fix_sort_query_parameters(sort_query: &str) -> Vec<String> {
sort_parameters.push(current_sort.to_string());
merge = true;
} else if merge && !sort_parameters.is_empty() {
sort_parameters
.last_mut()
.unwrap()
.push_str(&format!(",{}", current_sort));
let s = sort_parameters.last_mut().unwrap();
s.push(',');
s.push_str(current_sort);
if current_sort.ends_with("):desc") || current_sort.ends_with("):asc") {
merge = false;
}