mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[GH-ISSUE #116] Explicitly read from the environment variables with from_env #39
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#39
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?
Originally created by @marioortizmanero on GitHub (Aug 16, 2020).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/116
Calling
SpotifyClientCredentials::default()automatically tries to read the environment values forCLIENT_IDandCLIENT_SECRET. I think this shouldn't be the default behavior, meaning that the currentdefaultmethod should becomefrom_env, and have adefaultmethod that simply sets the values toNone.This is also done by the tekore library, for example.
This should be done after #109 is taken care of. I have to check if any other structs apart from
SpotifyClientCredentialsdo anything similar.