From c29225ccfd0b1dc952449020a6654babc9036ab0 Mon Sep 17 00:00:00 2001 From: timofey Date: Fri, 5 May 2023 20:14:09 +0000 Subject: [PATCH] rearrange Factory base traits --- src/core.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.rs b/src/core.rs index d6625f3..89509de 100644 --- a/src/core.rs +++ b/src/core.rs @@ -86,7 +86,7 @@ pub type ParseResult<'a, Ctx, F> = /// Trait representing deserialisation rules for [Mentionable]s. /// Crucial for [`TypelessMentionable`] and therefore [`Mentionable::points`]. -pub trait Factory<'a, Ctx: 'a + Context>: Clone + 'a { +pub trait Factory<'a, Ctx: 'a + Context>: 'a + Clone { /// Type of the associated objects. type Mtbl: Mentionable<'a, Ctx, Fctr = Self>; /// Type of an error that [`Factory::deserialize`] can fail with.