Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
boundless-forest committed Aug 4, 2023
1 parent 4d7e2e9 commit 62e53d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ pub async fn handle_commands<CI: ChainInfo>(
return Err(AppError::Custom("Only support the runtime metadata V14 now.".to_string()));
};

let mut pallets = metadata.pallets.iter().cloned().collect::<Vec<_>>();
let mut pallets = metadata.pallets.to_vec();
pallets.sort_by_key(|p| p.index);

let mut table = Table::new();
Expand Down

0 comments on commit 62e53d9

Please sign in to comment.