Skip to content

Commit

Permalink
former : evolve
Browse files Browse the repository at this point in the history
  • Loading branch information
Wandalen committed Apr 20, 2024
1 parent 9f3be3d commit ce28204
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions module/core/former/tests/inc/former_tests/subformer_basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub struct Property< Name >
impl< Name > Property< Name >
{
#[ inline ]
pub fn new_coercing< Description, Code >( name : Name, description : Description, code : Code ) -> Self
pub fn new< Description, Code >( name : Name, description : Description, code : Code ) -> Self
where
Name : core::convert::Into< Name >,
Description : core::convert::Into< String >,
Expand Down Expand Up @@ -295,7 +295,7 @@ where
(
None,
Some( self ),
ContainerAddElement::new_coercing(),
ContainerAddElement::default(),
);

former.name( name )
Expand Down Expand Up @@ -427,23 +427,15 @@ where

//

#[ derive( Debug ) ]
pub struct ContainerAddElement< SuperContainer, Element, SubFormed >
( core::marker::PhantomData< fn( SuperContainer, Element, SubFormed ) > );

impl
<
SuperContainer,
Element,
SubFormed,
>
ContainerAddElement
<
SuperContainer,
Element,
SubFormed,
>
impl< SuperContainer, Element, SubFormed > ::core::default::Default
for ContainerAddElement< SuperContainer, Element, SubFormed >
{
pub fn new_coercing() -> Self
#[ inline( always ) ]
fn default() -> Self
{
Self( core::marker::PhantomData )
}
Expand Down

0 comments on commit ce28204

Please sign in to comment.