Skip to content

Commit

Permalink
Fixed clippy warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
AureliaDolo committed Nov 22, 2021
1 parent 42a1772 commit 414b773
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions api/src/public.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,7 @@ impl Endpoints for API<Public> {
.map(|(slot, (_, addrs))| {
addrs.iter().enumerate().filter_map(|(index, ad)| {
if *ad == address {
Some(IndexedSlot {
slot: *slot,
index: index,
})
Some(IndexedSlot { slot: *slot, index })
} else {
None
}
Expand Down

0 comments on commit 414b773

Please sign in to comment.