Remove Self: 'static buound on RequesterExt::throttle

This commit is contained in:
Waffle 2021-07-07 20:11:24 +03:00
parent e7b44e6bbe
commit 23c125775c
2 changed files with 1 additions and 3 deletions

View file

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Minor documentation tweaks ([#102][pr102])
- Remove `Self: 'static` buound on `RequesterExt::throttle` ([#102][pr102])
[pr102]: https://github.com/teloxide/teloxide-core/pull/102

View file

@ -50,9 +50,6 @@ pub trait RequesterExt: Requester {
fn throttle(self, limits: Limits) -> Throttle<Self>
where
Self: Sized,
// >:(
// (waffle)
Self: 'static,
{
Throttle::new_spawn(self, limits)
}