Fix clippy
This commit is contained in:
parent
d3228f2e80
commit
4bea51fa14
1 changed files with 2 additions and 2 deletions
|
|
@ -163,7 +163,7 @@ pub async fn search_tokens_by_volume(
|
|||
]
|
||||
.concat();
|
||||
|
||||
combined_tokens.sort_by(|a, b| a.0.to_lowercase().cmp(&b.0.to_lowercase()));
|
||||
combined_tokens.sort_by_key(|a| a.0.to_lowercase());
|
||||
|
||||
combined_tokens.dedup_by(|a, b| {
|
||||
if a.0.eq_ignore_ascii_case(&b.0) {
|
||||
|
|
@ -179,7 +179,7 @@ pub async fn search_tokens_by_volume(
|
|||
|
||||
let mut result = token_volume(cauldron_pool, combined_tokens).await?;
|
||||
|
||||
result.sort_by(|a, b| b.3.cmp(&a.3));
|
||||
result.sort_by_key(|b| std::cmp::Reverse(b.3));
|
||||
Ok(result)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue