mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 11:17:56 +00:00
Avoid Unstable Sort (#12455)
* dont use unstable sort * remove comment * add clippy rule
This commit is contained in:
@@ -198,7 +198,7 @@ fn format_allowed_hosts(addrs: &[SocketAddr]) -> Vec<String> {
|
||||
|
||||
fn build_rpc_api<M: Send + Sync + 'static>(mut rpc_api: RpcModule<M>) -> RpcModule<M> {
|
||||
let mut available_methods = rpc_api.method_names().collect::<Vec<_>>();
|
||||
available_methods.sort_unstable();
|
||||
available_methods.sort();
|
||||
|
||||
rpc_api
|
||||
.register_method("rpc_methods", move |_, _| {
|
||||
|
||||
Reference in New Issue
Block a user