Skip to content

Commit

Permalink
Merge pull request #297 from ramsayleung/ramsay_fix_enum_alias
Browse files Browse the repository at this point in the history
Fix casing for AVR
  • Loading branch information
marioortizmanero authored Feb 15, 2022
2 parents 52e35c8 + 509bac1 commit 19d9b76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.11.4 (unreleased)

- ([#295](https://github.com/ramsayleung/rspotify/pull/295)) The `Tv` variant in `DeviceType` is actually case insensitive.
- ([#296](https://github.com/ramsayleung/rspotify/pull/296)) The `Avr` variant in `DeviceType` is actually case insensitive.

## 0.11.3 (2021.11.29)

Expand Down
2 changes: 2 additions & 0 deletions rspotify-model/src/enums/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ pub enum DeviceType {
/// 'Tv' and 'TV' as the type.
#[serde(alias = "TV")]
Tv,
/// Same as above, the Web API returns both 'AVR' and 'Avr' as the type.
#[serde(alias = "AVR")]
Avr,
Stb,
AudioDongle,
Expand Down

0 comments on commit 19d9b76

Please sign in to comment.