Skip to content

Commit

Permalink
Update collection_mints.rs
Browse files Browse the repository at this point in the history
refactor:no need to clone owner
  • Loading branch information
kespinola authored Sep 14, 2023
1 parent 1c43201 commit 3ab49bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/dataloaders/collection_mints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl DataLoader<String> for OwnerLoader {
.into_iter()
.fold(HashMap::new(), |mut acc, collection_mint| {
if let Some(owner) = collection_mint.owner.clone() {
acc.entry(owner.clone())
acc.entry(owner)
.or_insert_with(Vec::new)
.push(collection_mint.into());
}
Expand Down

0 comments on commit 3ab49bf

Please sign in to comment.