Resolve FIXME in HasPayload: we've decided to not add As{Mut,Ref} bounds

This commit is contained in:
Waffle Lapkin 2021-06-09 11:09:14 +03:00 committed by GitHub
parent b69ce47d23
commit 8ea42fe871
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;