record-daemon: fmt, clippy
record-daemon / Build, check and test (push) Successful in 2m12s

This commit is contained in:
vhaudiquet committed 2026-03-25 11:07:36 +01:00
1 parent 12fe579aca
commit f81eff8496
5 files changed
+189 -78

No files matched your search

+11 -7
View File
@@ -235,21 +235,25 @@ impl DaemonStateMachine {
GameEvent::GameStart(info) => {
// Extract summoner spells from session data if available
let summoner_spells = info.session.as_ref().and_then(|session| {
session.player_champion_selections.first().map(|selection| {
SummonerSpells {
session
.player_champion_selections
.first()
.map(|selection| SummonerSpells {
spell1_id: selection.spell1_id,
spell2_id: selection.spell2_id,
spell1_name: crate::lqp::spell_id_to_name(selection.spell1_id),
spell2_name: crate::lqp::spell_id_to_name(selection.spell2_id),
}
})
})
});
// Extract puuid from session data if available
let puuid = info.session.as_ref().and_then(|session| {
session.player_champion_selections.first().map(|selection| selection.puuid.clone())
session
.player_champion_selections
.first()
.map(|selection| selection.puuid.clone())
});
Some(StateTransition::GameStarted {
game_id: info.game_id,
champion: info.champion.clone(),