Skip to content

Commit

Permalink
fix clippy lints (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelvanderwaal authored Jan 6, 2025
1 parent 2a03af9 commit c22cbd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/decode/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(clippy::result_large_err)]

use anyhow::{anyhow, Result as AnyResult};
use indicatif::ParallelProgressIterator;
use log::{debug, error, info};
Expand Down
4 changes: 2 additions & 2 deletions src/snapshot/das_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub async fn snapshot_holders(args: HoldersArgs) -> Result<()> {
});

let fvca_filter = |item: &Item| {
item.creators.first().is_some()
!item.creators.is_empty()
&& item.creators.first().unwrap().address.to_string() == args.group_value.to_string()
};

Expand Down Expand Up @@ -441,7 +441,7 @@ pub async fn fcva_mints(args: FcvaArgs) -> Result<()> {
.items
.iter()
.filter(|item| {
item.creators.first().is_some()
!item.creators.is_empty()
&& item.creators.first().unwrap().address.to_string() == creator
})
.for_each(|item| {
Expand Down

0 comments on commit c22cbd0

Please sign in to comment.