Replies: 1 comment 3 replies
-
We require Sized sure to object safety of the trait. References are Sized even if they point to something that isn't Sized, so it isn't a problem. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently working around reading into a buffer from a
&mut dyn AsyncRead
,read_buf
being the only extension method onAsyncReadExt
that requiresSelf: Sized
. Just wondering if there's a good reason for this, or just something historical that's been overlooked.Removing the requirement and adding
R: ?Sized
on two lines inread_buf.rs
compiles fine.Beta Was this translation helpful? Give feedback.
All reactions