Skip to content

Commit eea731f

Browse files
alexandruagandreeaflorescu
authored andcommitted
guest_memory: relax Bytes impl trait bounds
Added `+ ?Sized` to the requirements of the `Bytes ` auto implementation for `T: GuestMemory`, as otherwise an unnecessary `Sized` bound was inferred. Signed-off-by: Alexandru Agache <[email protected]>
1 parent 531db59 commit eea731f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guest_memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ pub trait GuestMemory {
729729
}
730730
}
731731

732-
impl<T: GuestMemory> Bytes<GuestAddress> for T {
732+
impl<T: GuestMemory + ?Sized> Bytes<GuestAddress> for T {
733733
type E = Error;
734734

735735
fn write(&self, buf: &[u8], addr: GuestAddress) -> Result<usize> {

0 commit comments

Comments
 (0)