mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #441] [MERGED] Update DeviceType to fix json parse error: unknown variant #456
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#456
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ramsayleung/rspotify/pull/441
Author: @ndoolan360
Created: 8/31/2023
Status: ✅ Merged
Merged: 9/12/2023
Merged by: @ramsayleung
Base:
master← Head:master📝 Commits (2)
bf71771Update DeviceType to fix json parse error: unknown variant7477993Fix clippy deprecation warnings📊 Changes
4 files changed (+8 additions, -3 deletions)
View changed files
📝
CHANGELOG.md(+4 -0)📝
rspotify-model/src/custom_serde.rs(+1 -1)📝
rspotify-model/src/enums/types.rs(+1 -0)📝
tests/test_models.rs(+2 -2)📄 Description
Description
Fix json parse error: unknown variant
Smartwatchwhen calling device() method.Motivation and Context
Fixes https://github.com/ramsayleung/rspotify/issues/440
Type of change
How has this been tested?
I have device with Smartwatch type, calling device() method from my app using rspotify returns error above.

Changes from this pull request stop the error occurring and allow the device type 'Smartwatch' to be returned.
Is this change properly documented?
No changes in docs were made.
CHANGELOG entry has been added under bug fix for 12.0.1
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.