mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #102] [MERGED] Slightly better documentation, comment formatting, proposal for more changes #245
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#245
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/102
Author: @marioortizmanero
Created: 7/13/2020
Status: ✅ Merged
Merged: 7/19/2020
Merged by: @ramsayleung
Base:
master← Head:master📝 Commits (3)
740b757Slightly better documentation, comment formattinga4465e8README.md improvements8539b8ccargo fmt📊 Changes
27 files changed (+874 additions, -881 deletions)
View changed files
📝
README.md(+20 -27)📝
examples/add_to_queue.rs(+1 -1)📝
examples/next_playback.rs(+1 -1)📝
examples/previous_playback.rs(+1 -1)📝
src/blocking/client.rs(+387 -388)📝
src/blocking/oauth2.rs(+10 -10)📝
src/blocking/util.rs(+9 -9)📝
src/client.rs(+344 -345)📝
src/lib.rs(+39 -39)📝
src/model/album.rs(+4 -4)📝
src/model/artist.rs(+2 -2)📝
src/model/audio.rs(+6 -6)📝
src/model/category.rs(+2 -2)📝
src/model/context.rs(+4 -4)📝
src/model/cud_result.rs(+1 -1)📝
src/model/device.rs(+1 -1)📝
src/model/image.rs(+1 -1)📝
src/model/offset.rs(+1 -1)📝
src/model/page.rs(+6 -6)📝
src/model/playing.rs(+4 -4)...and 7 more files
📄 Description
Hi @ramsayleung!
I was going to use this library for one of my projects and I've decided I'm going to help a bit. I've formatted consistently and correctly the comments for each endpoint with a vim macro, and have made very small changes to the docs, hoping they're more clear now.
I would love to run a
cargo fmtto clean everything up automatically, but I understand it'd be better to first merge the two other PRs pending to avoid messing up the diffs.Another thing I really want to change is the repetition between
blocking/cilent.rsandclient.rs. A macro would come in perfectly here to unify blocking and async and I think would make it super easy to add/update new endpoints. I'll make a new PR if you're okay with that (if I manage to get it working). There's got to be a solution for that already anyway, I'll have to investigate. I should open a new issue for that, right?Edit: I've seen that there's a CI run for cargo fmt, which is failing. Should I just run it in a new commit, then?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.