Skip to content

Commit 96944b2

Browse files
fix clippy lints
1 parent 2a03af9 commit 96944b2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/decode/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::result_large_err)]
2+
13
use anyhow::{anyhow, Result as AnyResult};
24
use indicatif::ParallelProgressIterator;
35
use log::{debug, error, info};

src/snapshot/das_api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub async fn snapshot_holders(args: HoldersArgs) -> Result<()> {
119119
});
120120

121121
let fvca_filter = |item: &Item| {
122-
item.creators.first().is_some()
122+
!item.creators.is_empty()
123123
&& item.creators.first().unwrap().address.to_string() == args.group_value.to_string()
124124
};
125125

@@ -441,7 +441,7 @@ pub async fn fcva_mints(args: FcvaArgs) -> Result<()> {
441441
.items
442442
.iter()
443443
.filter(|item| {
444-
item.creators.first().is_some()
444+
!item.creators.is_empty()
445445
&& item.creators.first().unwrap().address.to_string() == creator
446446
})
447447
.for_each(|item| {

0 commit comments

Comments
 (0)