mirror of https://github.com/MingweiSamuel/Riven
parent
97b6017b42
commit
6512866c26
|
@ -48,7 +48,7 @@ rt.block_on(async {
|
||||||
.get_all_champion_masteries(PlatformRoute::NA1, &summoner.id).await
|
.get_all_champion_masteries(PlatformRoute::NA1, &summoner.id).await
|
||||||
.expect("Get champion masteries failed.");
|
.expect("Get champion masteries failed.");
|
||||||
|
|
||||||
// Print champioon masteries.
|
// Print champion masteries.
|
||||||
for (i, mastery) in masteries.iter().take(10).enumerate() {
|
for (i, mastery) in masteries.iter().take(10).enumerate() {
|
||||||
println!("{: >2}) {: <9} {: >7} ({})", i + 1,
|
println!("{: >2}) {: <9} {: >7} ({})", i + 1,
|
||||||
mastery.champion_id.name().unwrap_or("UNKNOWN"),
|
mastery.champion_id.name().unwrap_or("UNKNOWN"),
|
||||||
|
|
Loading…
Reference in New Issue