From 6c3d51a07143caa2ae529db6811f59855f35b8f3 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Sat, 16 Jan 2021 13:25:34 -0800 Subject: [PATCH] Update TR challenger test slice out of bounds --- tests/tests_tr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests_tr.rs b/tests/tests_tr.rs index 0fd3bd0..cfebb60 100644 --- a/tests/tests_tr.rs +++ b/tests/tests_tr.rs @@ -22,7 +22,7 @@ async_tests!{ println!("{:?} Challenger {} entries.", REGION, ll.entries.len()); - let sl = ll.entries[..50].iter() + let sl = ll.entries.iter().take(50) .map(|entry| RIOT_API.summoner_v4().get_by_summoner_id(REGION, &entry.summoner_id)) .map(tokio::spawn) .collect::>();