Skip to content

Commit 0afda44

Browse files
committed
Fix GAT feature
rust-lang/rust#78113
1 parent 7a10933 commit 0afda44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/draw/handle.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ impl<S: SizeHandle> SizeHandle for Box<S> {
508508
}
509509

510510
#[cfg(feature = "stack_dst")]
511-
impl<S> SizeHandle for stack_dst::ValueA<dyn SizeHandle, S>
511+
impl<'a, S> SizeHandle for stack_dst::ValueA<dyn SizeHandle + 'a, S>
512512
where
513513
S: Default + Copy + AsRef<[usize]> + AsMut<[usize]>,
514514
{
@@ -664,7 +664,7 @@ impl<H: DrawHandle> DrawHandle for Box<H> {
664664
}
665665

666666
#[cfg(feature = "stack_dst")]
667-
impl<S> DrawHandle for stack_dst::ValueA<dyn DrawHandle, S>
667+
impl<'a, S> DrawHandle for stack_dst::ValueA<dyn DrawHandle + 'a, S>
668668
where
669669
S: Default + Copy + AsRef<[usize]> + AsMut<[usize]>,
670670
{

0 commit comments

Comments
 (0)