expose request in builder
This commit is contained in:
parent
7cfb715e0c
commit
01bbe37876
4 changed files with 7 additions and 9 deletions
|
|
@ -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()
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue