From 62e53d9405544999ac0bb68a89ccb62c85ccbda6 Mon Sep 17 00:00:00 2001 From: bear Date: Fri, 4 Aug 2023 15:29:25 +0800 Subject: [PATCH] Fix clippy --- src/handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handler.rs b/src/handler.rs index 917059a..4008a94 100644 --- a/src/handler.rs +++ b/src/handler.rs @@ -147,7 +147,7 @@ pub async fn handle_commands( return Err(AppError::Custom("Only support the runtime metadata V14 now.".to_string())); }; - let mut pallets = metadata.pallets.iter().cloned().collect::>(); + let mut pallets = metadata.pallets.to_vec(); pallets.sort_by_key(|p| p.index); let mut table = Table::new();