mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #128] [MERGED] Polish Rspotify #261
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#261
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/128
Author: @ramsayleung
Created: 9/19/2020
Status: ✅ Merged
Merged: 10/27/2020
Merged by: @ramsayleung
Base:
master← Head:ramsay_clean_up_rspotify📝 Commits (10+)
dfaa9d6clean up util.rs remove functions: convert_map_to_string and convert_map_to_stringbc979a7clean up util.rs remove functions: convert_map_to_string and convert_map_to_string0e63c1aMerge branch 'ramsay_clean_up_rspotify' of github.com:ramsayleung/rspotify into ramsay_clean_up_rspotifycb162a9clean up blocking/utils.rs, it's painful to maintain two sets of code which are6d4c0a8replace explict Vec or Array to impl IntoIterator<Item=&str> in async module.66a2e5dreplace impl IntoIterator<Item=&str> to impl IntoIterator<Item=&String> to keep backward compatibility348aa44replace Vec or Array to impl IntoIterator<Item = String> in blocking module.c61c582fix failed tests and checks.3c6b5baUpdate CHANGELOG.md.5a6a83dChange endpoints with parameter fromVec<String>toimpl IntoIterator<Item = &str>.📊 Changes
21 files changed (+997 additions, -1365 deletions)
View changed files
📝
CHANGELOG.md(+35 -1)📝
Cargo.toml(+1 -0)📝
examples/ureq/search.rs(+1 -1)📝
examples/with_refresh_token.rs(+5 -5)📝
src/client.rs(+148 -119)📝
src/lib.rs(+0 -1)📝
src/model/album.rs(+2 -2)📝
src/model/artist.rs(+1 -1)📝
src/model/context.rs(+2 -2)📝
src/model/device.rs(+1 -1)➕
src/model/enums/country.rs(+518 -0)➕
src/model/enums/misc.rs(+96 -0)➕
src/model/enums/mod.rs(+10 -0)➕
src/model/enums/types.rs(+120 -0)📝
src/model/mod.rs(+7 -0)📝
src/model/playlist.rs(+1 -1)📝
src/model/track.rs(+1 -1)📝
src/model/user.rs(+2 -2)➖
src/senum.rs(+0 -1178)📝
tests/test_with_credential.rs(+11 -11)...and 1 more files
📄 Description
Clean up Rspotify, take some points of https://github.com/ramsayleung/rspotify/issues/127 into consideration.
remove convert_map_to_string and convert_string_to_map inutil.rs, replaced them withReqwest'squerymethod andUrlstruct.senum.rsfile into a module namedenumsand move it intomodelmodule.modelmodule to allow users to writerspotify::model::FullAlbuminstead of the overly verboserspotify::model::album::FullAlbum.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
Defaultwhen it is possible to #353