mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #250] [MERGED] Cleanup #341
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#341
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/250
Author: @marioortizmanero
Created: 9/6/2021
Status: ✅ Merged
Merged: 9/7/2021
Merged by: @marioortizmanero
Base:
master← Head:cleanup📝 Commits (10+)
bc1c7beCleanup Cargo.toml4489430logging -> debug_assert0e38d95More cargo cleanup933f116Formatting6ca5fffNo need for a fancy logger466a9a9Clean up derivesda95750Lots of fixes & improvementsc337ae8Upgraded all dependencies withcargo upgradebdfc9a7Fix docs errors1fb3492Fix clippy errors📊 Changes
18 files changed (+407 additions, -385 deletions)
View changed files
📝
Cargo.toml(+13 -21)📝
rspotify-http/Cargo.toml(+9 -14)📝
rspotify-macros/Cargo.toml(+1 -1)📝
rspotify-model/Cargo.toml(+5 -6)📝
rspotify-model/src/album.rs(+9 -2)📝
rspotify-model/src/audio.rs(+4 -1)➕
rspotify-model/src/auth.rs(+84 -0)📝
rspotify-model/src/context.rs(+2 -1)➕
rspotify-model/src/custom_serde.rs(+224 -0)📝
rspotify-model/src/error.rs(+15 -1)📝
rspotify-model/src/lib.rs(+13 -199)📝
rspotify-model/src/show.rs(+1 -1)📝
rspotify-model/src/track.rs(+1 -1)📝
src/client_creds.rs(+4 -4)📝
src/clients/base.rs(+6 -5)📝
src/clients/oauth.rs(+8 -9)📝
src/lib.rs(+7 -118)📝
tests/test_oauth2.rs(+1 -1)📄 Description
Description
This cleans up quite a few things:
debug_assertinstead oflogto ensure endpoint predicates are met; some people don't enable logging at allderivemacros.Serialize/Deserializeitems fromsrctorspotify-model, likeToken, where they fit better. This forced me to create aModelError, but I don't really see the problem.custom_serdeand fixpub(in crate)occurencesToken::from_cachenow returns aResultinstead of anOption, as the TODO above indicated.Motivation and Context
I'm working on the last things needed to finally release v0.11. This is one of them :)
I got some of these suggestions from this very nice article, give it a read yourself: https://matklad.github.io/2021/09/04/fast-rust-builds.html
Dependencies
None, if anything I've removed some.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
The CI should also pass after this
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.