mirror of
https://codeberg.org/demostf/api-test.git
synced 2026-11-30 12:10:51 +01:00
clippy fixes
This commit is contained in:
parent
67465fc22a
commit
c4aa610433
2 changed files with 8 additions and 11 deletions
|
|
@ -310,7 +310,7 @@ async fn main() -> Result<()> {
|
|||
assert_eq(list.len(), 1)?;
|
||||
assert_eq(list[0].id, 4)?;
|
||||
|
||||
let players = list[0].get_players(&client).await?;
|
||||
let players = list[0].get_players(client).await?;
|
||||
let reconnected_player = players
|
||||
.iter()
|
||||
.find(|player| player.user.steam_id == SteamID::from(76561197998883586))
|
||||
|
|
@ -364,7 +364,7 @@ async fn main() -> Result<()> {
|
|||
|
||||
test.step("list time filter after", |client| async move {
|
||||
let list = client
|
||||
.list(ListParams::default().with_after(first_time.clone()), 1)
|
||||
.list(ListParams::default().with_after(first_time), 1)
|
||||
.await?;
|
||||
|
||||
assert_eq(list.len(), 2)?;
|
||||
|
|
@ -376,7 +376,7 @@ async fn main() -> Result<()> {
|
|||
|
||||
test.step("list time filter before", |client| async move {
|
||||
let list = client
|
||||
.list(ListParams::default().with_before(first_time.clone()), 1)
|
||||
.list(ListParams::default().with_before(first_time), 1)
|
||||
.await?;
|
||||
|
||||
assert_eq(list.len(), 2)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue