Skip to content

Commit

Permalink
clippy on bot project
Browse files Browse the repository at this point in the history
  • Loading branch information
dougEfresh committed Feb 17, 2024
1 parent f16c3c0 commit 38b907d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,5 @@ jobs:

- name: Compile
run: |
cd bot && cargo build
cd bot && cargo clippy && cargo build
- name: Clippy
run: |
cd bot && cargo clippy --all-targets
2 changes: 1 addition & 1 deletion bot/src/bot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl SeleneBot {
Ok(Self { id, bot, helius, name_cache })
}

async fn find_names(&self, transactions: &Vec<EnhancedTransaction>) -> color_eyre::Result<Vec<AccountName>> {
async fn find_names(&self, transactions: &[EnhancedTransaction]) -> color_eyre::Result<Vec<AccountName>> {
let mut names: Vec<AccountName> = transactions
.iter()
.flat_map(|t| t.account_data.iter())
Expand Down

0 comments on commit 38b907d

Please sign in to comment.