simplify AtomicFactory::mdeserialize
This commit is contained in:
parent
05cb4a2a00
commit
368db8a1a4
@ -81,7 +81,7 @@ impl<A: ParseMode> ParseMode for AtomicFactory<A> {
|
||||
|
||||
impl<'a, Ctx: Context<'a>, A: AtomicModeParse> FactoryModeParse<'a, Ctx> for AtomicFactory<A> {
|
||||
fn mdeserialize<I: InCtx<'a, Ctx>>(&self, inctx: I) -> ParseResultM<'a, Ctx, Self, I> {
|
||||
<<A as ParseMode>::Mode as Mode>::bind(A::ma_deserialize(inctx)?, |a| Ok(a.into()))
|
||||
A::ma_deserialize(inctx).map(|a| Self::map(a, From::from))
|
||||
}
|
||||
|
||||
fn mextend(
|
||||
|
Loading…
Reference in New Issue
Block a user