Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Make the trait bounds in Request{,er} stricter #12

Merged
merged 1 commit into from
Oct 20, 2020
Merged

Conversation

WaffleLapkin
Copy link
Contributor

  • Add Err associated type to Requester, containing all requests to have the same Err.
  • Add core::marker::Send bound for Request::{Err,Send,SendRef} associated types.

Pros: easier to write user code, cons: harder to write teloxide itself.

@WaffleLapkin WaffleLapkin added the enhancement New feature or request label Oct 20, 2020
@WaffleLapkin WaffleLapkin requested a review from hirrolot October 20, 2020 09:20
@hirrolot hirrolot merged commit f578894 into master Oct 20, 2020
@hirrolot hirrolot deleted the stricter_bounds branch October 20, 2020 21:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants