mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Remove Self: 'static
buound on RequesterExt::throttle
This commit is contained in:
parent
e7b44e6bbe
commit
23c125775c
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue