Skip to content

Commit

Permalink
former : making subforming more friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Mar 20, 2024
1 parent 727a8b5 commit b0184bc
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,15 @@ where
let on_end = | formed : Vec< String >, super_former : core::option::Option< Self > | -> Self
{
let mut super_former = super_former.unwrap();
if super_former.storage.vec_1.is_none()
{
super_former.storage.vec_1 = Some( Default::default() );
}
if let Some( ref mut field ) = super_former.storage.vec_1
{
former::ContainerAssign::assign( field, formed );
}
else
{
super_former.storage.vec_1 = Some( formed );
}

super_former
};
Former2::_begin( None, Some( self ), former::FormingEndWrapper::new( on_end ) )
Expand Down

0 comments on commit b0184bc

Please sign in to comment.