expose request in builder

This commit is contained in:
TotallyNot 2024-04-02 21:06:41 +02:00
parent 7cfb715e0c
commit 01bbe37876
4 changed files with 7 additions and 9 deletions

View file

@ -15,7 +15,7 @@ pub fn user_benchmark(c: &mut Criterion) {
client
.torn_api(key)
.user(|b| {
b.selections(&[
b.selections([
user::Selection::Basic,
user::Selection::Discord,
user::Selection::Profile,
@ -49,7 +49,7 @@ pub fn faction_benchmark(c: &mut Criterion) {
client
.torn_api(key)
.faction(|b| b.selections(&[faction::Selection::Basic]))
.faction(|b| b.selections([faction::Selection::Basic]))
.await
.unwrap()
});
@ -74,7 +74,7 @@ pub fn attacks_full(c: &mut Criterion) {
client
.torn_api(key)
.faction(|b| b.selections(&[faction::Selection::AttacksFull]))
.faction(|b| b.selections([faction::Selection::AttacksFull]))
.await
.unwrap()
});