Optimize loop
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nyyu 2021-03-14 15:08:30 +01:00
parent f36fa0c964
commit 9f6170b234

View file

@ -159,6 +159,7 @@ impl DataSource for CGGDataSource {
for champion in reports.iter() {
if champion.champion_id.to_string() == champ.key && champion.role == position {
some_champ = Some(champion);
break;
}
}
if let Some(champ) = some_champ {