Switch Event::team method return to Option instead of Result<Team, error::NoTeamAttribute> #17

Closed
opened 2025-04-23 19:42:53 -04:00 by Cutieguwu · 1 comment
Cutieguwu commented 2025-04-23 19:42:53 -04:00 (Migrated from github.com)

There is no need for an error result here, and it breaks consistency with Event::delta() and Event::quarter().

error::NoTeamAttribute should be deprecated, and Event::team should instead return Option<Team>.

There is no need for an error result here, and it breaks consistency with `Event::delta()` and `Event::quarter()`. `error::NoTeamAttribute` should be deprecated, and `Event::team` should instead return `Option<Team>`.
Cutieguwu commented 2025-04-23 20:34:21 -04:00 (Migrated from github.com)

Resolved in a5535354a3

Resolved in a5535354a33a0b203a83105b3a73970db9009657
This repo is archived. You cannot comment on issues.