mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #261] [MERGED] Implement Default when it is possible to #353
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#353
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/261
Author: @marioortizmanero
Created: 9/26/2021
Status: ✅ Merged
Merged: 10/9/2021
Merged by: @ramsayleung
Base:
master← Head:defaults📝 Commits (4)
632ff1aImplementDefaultwhen it is possible tod5a5169Update changelog97ff30dMerge branch 'master' into defaultsc6d505cMerge branch 'master' into defaults📊 Changes
18 files changed (+36 additions, -34 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
rspotify-model/src/album.rs(+4 -4)📝
rspotify-model/src/artist.rs(+3 -3)📝
rspotify-model/src/audio.rs(+4 -4)📝
rspotify-model/src/auth.rs(+1 -1)📝
rspotify-model/src/category.rs(+2 -2)📝
rspotify-model/src/context.rs(+1 -1)📝
rspotify-model/src/device.rs(+1 -1)📝
rspotify-model/src/image.rs(+1 -1)📝
rspotify-model/src/lib.rs(+1 -1)📝
rspotify-model/src/page.rs(+3 -3)📝
rspotify-model/src/playlist.rs(+4 -4)📝
rspotify-model/src/recommend.rs(+1 -1)📝
rspotify-model/src/search.rs(+1 -1)📝
rspotify-model/src/show.rs(+3 -3)📝
rspotify-model/src/track.rs(+2 -2)📝
rspotify-model/src/user.rs(+1 -1)📝
src/clients/base.rs(+1 -1)📄 Description
Description
This adds a
#[derive(Default)]where it is possible. I've also included a couple minor fixes, like renaming a model with a typo, or updating the docs of intermediate structs (i.e. holders ofVec<T>which are then simplified to just aVec<T>in the client).Motivation and Context
This closes #33 and leaves #223 and #221 as the only issues left for the new release :))
Dependencies
None
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Tests still pass perfectly.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.