@@ -97,23 +97,15 @@ macro_rules! impl_ident_subtype {
9797
9898#[ derive( Wrapper , Clone , Ord , PartialOrd , Eq , PartialEq , Hash , From ) ]
9999#[ wrapper( Deref , Display , FromStr ) ]
100- #[ cfg_attr(
101- feature = "serde" ,
102- derive( Serialize , Deserialize ) ,
103- serde( crate = "serde_crate" , transparent)
104- ) ]
100+ #[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) , serde( transparent) ) ]
105101pub struct Ident ( RString < AlphaLodash , AlphaNumLodash , 1 , IDENT_MAX_LEN > ) ;
106102
107103impl_ident_type ! ( Ident ) ;
108104impl_strict_newtype ! ( Ident , STRICT_TYPES_LIB ) ;
109105
110106#[ derive( Wrapper , Clone , Ord , PartialOrd , Eq , PartialEq , Hash , From ) ]
111107#[ wrapper( Deref , Display , FromStr ) ]
112- #[ cfg_attr(
113- feature = "serde" ,
114- derive( Serialize , Deserialize ) ,
115- serde( crate = "serde_crate" , transparent)
116- ) ]
108+ #[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) , serde( transparent) ) ]
117109pub struct TypeName ( RString < AlphaCapsLodash , AlphaNumLodash , 1 , IDENT_MAX_LEN > ) ;
118110
119111impl_ident_type ! ( TypeName ) ;
@@ -122,11 +114,7 @@ impl_strict_newtype!(TypeName, STRICT_TYPES_LIB);
122114
123115#[ derive( Wrapper , Clone , Ord , PartialOrd , Eq , PartialEq , Hash , From ) ]
124116#[ wrapper( Deref , Display , FromStr ) ]
125- #[ cfg_attr(
126- feature = "serde" ,
127- derive( Serialize , Deserialize ) ,
128- serde( crate = "serde_crate" , transparent)
129- ) ]
117+ #[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) , serde( transparent) ) ]
130118pub struct FieldName ( RString < AlphaSmallLodash , AlphaNumLodash , 1 , IDENT_MAX_LEN > ) ;
131119
132120impl_ident_type ! ( FieldName ) ;
@@ -135,11 +123,7 @@ impl_strict_newtype!(FieldName, STRICT_TYPES_LIB);
135123
136124#[ derive( Wrapper , Clone , Ord , PartialOrd , Eq , PartialEq , Hash , From ) ]
137125#[ wrapper( Deref , Display , FromStr ) ]
138- #[ cfg_attr(
139- feature = "serde" ,
140- derive( Serialize , Deserialize ) ,
141- serde( crate = "serde_crate" , transparent)
142- ) ]
126+ #[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) , serde( transparent) ) ]
143127pub struct VariantName ( RString < AlphaSmallLodash , AlphaNumLodash , 1 , IDENT_MAX_LEN > ) ;
144128
145129impl_ident_type ! ( VariantName ) ;
@@ -148,11 +132,7 @@ impl_strict_newtype!(VariantName, STRICT_TYPES_LIB);
148132
149133#[ derive( Wrapper , Clone , Ord , PartialOrd , Eq , PartialEq , Hash , From ) ]
150134#[ wrapper( Deref , Display , FromStr ) ]
151- #[ cfg_attr(
152- feature = "serde" ,
153- derive( Serialize , Deserialize ) ,
154- serde( crate = "serde_crate" , transparent)
155- ) ]
135+ #[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) , serde( transparent) ) ]
156136pub struct LibName ( RString < AlphaCapsLodash , AlphaNumLodash , 1 , IDENT_MAX_LEN > ) ;
157137
158138impl_ident_type ! ( LibName ) ;
0 commit comments