mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-23 00:42:03 +01:00
Resolve FIXME in HasPayload
: we've decided to not add As{Mut,Ref}
bounds
This commit is contained in:
parent
b69ce47d23
commit
8ea42fe871
1 changed files with 1 additions and 5 deletions
|
@ -17,11 +17,7 @@ use crate::requests::Payload;
|
|||
/// [`BorrowMut`]: std::borrow::BorrowMut
|
||||
/// [`Payload`]: crate::requests::Payload
|
||||
/// [output type]: HasPayload::Payload
|
||||
pub trait HasPayload
|
||||
// FIXME(waffle):
|
||||
// we wanted to use As{Mut,Ref} here, but they doesn't work
|
||||
// because of https://github.com/rust-lang/rust/issues/77010
|
||||
{
|
||||
pub trait HasPayload {
|
||||
/// The type of the payload contained.
|
||||
type Payload: Payload;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue