Skip to content

Commit

Permalink
nostr: replace .nth(0) with .next()
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Oct 26, 2023
1 parent 78807aa commit 7f686fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/nostr/src/event/tag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ where
TagKind::A => {
let mut kpi = tag_1.split(':');
if let (Some(kind_str), Some(pubkey_str), Some(identifier)) =
(kpi.nth(0), kpi.nth(0), kpi.nth(0))
(kpi.next(), kpi.next(), kpi.next())
{
Ok(Self::A {
kind: Kind::from_str(kind_str)?,
Expand Down Expand Up @@ -909,7 +909,7 @@ where
TagKind::A => {
let mut kpi = tag_1.split(':');
if let (Some(kind_str), Some(pubkey_str), Some(identifier)) =
(kpi.nth(0), kpi.nth(0), kpi.nth(0))
(kpi.next(), kpi.next(), kpi.next())
{
Ok(Self::A {
kind: Kind::from_str(kind_str)?,
Expand Down

0 comments on commit 7f686fc

Please sign in to comment.