Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Apr 5, 2024
1 parent 4f12771 commit 8bbbfd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl Client {
endpoints.retain(|e| e.url() != exclude.url());
}
// Sort by health score
endpoints.sort_by(|a, b| b.health().score().cmp(&a.health().score()));
endpoints.sort_by_key(|endpoint| std::cmp::Reverse(endpoint.health().score()));
// Pick the first one
let selected_endpoint = endpoints[0].clone();
// Ensure it's connected
Expand Down

0 comments on commit 8bbbfd5

Please sign in to comment.