From 99a57142ec36f90bf029b95cc24d9ef8b99d9076 Mon Sep 17 00:00:00 2001 From: Moritz Hoffmann Date: Wed, 19 Jun 2024 08:42:34 -0400 Subject: [PATCH] Do not require Push target Sized Signed-off-by: Moritz Hoffmann --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index fbd7bbc..50b66c9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -89,7 +89,7 @@ pub trait Containerized { } /// Push an item `T` into a region. -pub trait Push: Region { +pub trait Push: Region { /// Push `item` into self, returning an index that allows to look up the /// corresponding read item. #[must_use] @@ -99,7 +99,7 @@ pub trait Push: Region { /// Reserve space in the receiving region. /// /// Closely related to [`Push`], but separate because target type is likely different. -pub trait ReserveItems: Region { +pub trait ReserveItems { /// Ensure that the region can absorb `items` without reallocation. fn reserve_items(&mut self, items: I) where