Skip to content

Commit

Permalink
chore: first instead of get(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
patriknw committed Jan 22, 2024
1 parent 2e5bed1 commit 101a47b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion akka-projection-rs-commitlog/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ where
marshaller,
consumer_group_name,
topic,
slice_range.get(0).cloned().unwrap(),
slice_range.first().cloned().unwrap(),
)
}

Expand Down
2 changes: 1 addition & 1 deletion akka-projection-rs-grpc/src/consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ where
Self::with_slice_range(
event_producer_channel,
stream_id,
slice_range.get(0).cloned().unwrap(),
slice_range.first().cloned().unwrap(),
)
}

Expand Down

0 comments on commit 101a47b

Please sign in to comment.