Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gateway)!: Constructors take String, not Into<String> #1481

Merged
merged 2 commits into from
Jan 22, 2022
Merged

feat(gateway)!: Constructors take String, not Into<String> #1481

merged 2 commits into from
Jan 22, 2022

Conversation

vilgotf
Copy link
Member

@vilgotf vilgotf commented Jan 22, 2022

This was intened to land at the same time as twilight_http::Client constructor's got reworked in the same way.

This was intened to land at the same time as `twilight_http::Client`
constructor's got rewored in the same way.
@github-actions github-actions bot added c-gateway Affects the gateway crate m-breaking change Breaks the public API. t-feature Addition of a new feature labels Jan 22, 2022
@vilgotf vilgotf changed the title feat(gateway)!: Take constructors take String, not Into<String> feat(gateway)!: Constructors take String, not Into<String> Jan 22, 2022
@7596ff 7596ff merged commit 3aeace7 into twilight-rs:next Jan 22, 2022
@vilgotf vilgotf deleted the feat/gateway/string branch January 22, 2022 23:32
7596ff added a commit that referenced this pull request Jan 23, 2022
Additions

Add `Information::{ratelimit_refill, ratelimit_requests}` to view how
much time until the shard ratelimiter resets and how many requests until
the next refill ([#1368] - [@itohatweb])

Add `ClusterBuilder::shard_presence`, which allows setting a custom
presence based on a shard's ID ([#1474] - [@7596ff]).

Changes

The `rustls` feature has been removed ([#1314] - [@Gelbpunkt]). Users
must manually select one of `rustls-native-roots` or
`rustls-webpki-roots`.

`{CommandErrorType, SendErrorType}::ExecutorShutDown` have been removed,
since they are no longer possible ([#1368] - [@itohatweb]).

No longer derive `Deserialize` and `Serialize` on `Information` ([#1368]
- [@itohatweb]).

The MSRV has been updated to 1.57 ([#1402] - [@zeylahellyer]).

The Rust edition has been updated to 2021 ([#1412] - [@vilgotf]).

Constructors that used to take `impl Into<String>` now simply accept a
`String` ([#1481] - [@vilgotf]).

[#1314]: #1314
[#1368]: #1368
[#1402]: #1402
[#1412]: #1412
[#1474]: #1474
[#1481]: #1481

[@7596ff]: https://github.com/7596ff
[@itohatweb]: https://github.com/itohatweb
[@Gelbpunkt]: https://github.com/Gelbpunkt
[@vilgotf]: https://github.com/vilgotf
[@zeylahellyer]: https://github.com/zeylahellyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-gateway Affects the gateway crate m-breaking change Breaks the public API. t-feature Addition of a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants