From 4b2cbecd5b1e268654e25e7a6ac6cb45a08c6216 Mon Sep 17 00:00:00 2001 From: timofey Date: Sat, 29 Jul 2023 14:32:23 +0000 Subject: [PATCH] loosen `icnext_point` --- src/rcore/demoted.rs | 2 +- src/rcore/inctx.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rcore/demoted.rs b/src/rcore/demoted.rs index 93e2720..707a495 100644 --- a/src/rcore/demoted.rs +++ b/src/rcore/demoted.rs @@ -29,7 +29,7 @@ impl<'a: 'c, 'c, Ctx: Context<'a>> InCtx<'a, Ctx> for Demoted<'a, 'c, Ctx> { Ok((address, Self(dectx))) } - fn icnext_point<'b, A: Mentionable<'a, Ctx>, E>( + fn icnext_point<'b, A: MentionableBase<'a, Ctx>, E>( self, factory: A::Fctr, err: impl FnOnce(&[u8]) -> E, diff --git a/src/rcore/inctx.rs b/src/rcore/inctx.rs index 73d7d6f..382c3c9 100644 --- a/src/rcore/inctx.rs +++ b/src/rcore/inctx.rs @@ -6,7 +6,7 @@ pub trait InCtx<'a, Ctx: Context<'a>>: Inlining { fn icnext_address(self, err: impl FnOnce(&[u8]) -> E) -> Result<(Address, Self), E>; /// Read the next [Point]. - fn icnext_point<'b, A: Mentionable<'a, Ctx>, E>( + fn icnext_point<'b, A: MentionableBase<'a, Ctx>, E>( self, factory: A::Fctr, err: impl FnOnce(&[u8]) -> E,