mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 16:05:53 +03:00
[GH-ISSUE #275] Use Rust edition 2021 #83
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#83
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 (Oct 21, 2021).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/275
Is your feature request related to a problem? Please describe.
Rust 1.56 has been released, and with it, the 2021 edition. There's lots of cool changes. The problem is that if we started using it right now we'd force all the users of Rspotify to use rustc 1.56, so we should leave it for the future.
Reference: https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html
Describe the solution you'd like
rust-versionfield to theCargo.tomlsresolver = "2"from theCargo.tomls, since that's default nowbuild_mapandbuild_jsonmacros now thatHashMap::from([(a,b), (c,d)])is possible (only in case it looks great).cargo fix --editionjust in case.FWIW, Rspotify seems to compile just fine with v1.56, so that's not a problem.