File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ impl Input {
69
69
"Vec" => vec_attrs. push ( attr) ,
70
70
"Slice" => slice_attrs. push ( attr) ,
71
71
"Ref" => ref_attrs. push ( attr) ,
72
- "ptr " => ptr_attrs. push ( attr) ,
72
+ "Ptr " => ptr_attrs. push ( attr) ,
73
73
_ => panic ! ( "expected a soa type, got {}" , ident) ,
74
74
} ,
75
75
None => {
@@ -116,14 +116,12 @@ impl Input {
116
116
if self . derives . is_empty ( ) {
117
117
TokenStream :: new ( )
118
118
} else {
119
- let derives = & self
120
- . derives
121
- . iter ( )
122
- . cloned ( )
123
- . filter ( |name| name != "Clone" )
124
- . filter ( |name| name != "Deserialize" )
125
- . filter ( |name| name != "Serialize" )
126
- . collect :: < Vec < _ > > ( ) ;
119
+ let derives = & self . derives . iter ( )
120
+ . cloned ( )
121
+ . filter ( |name| name != "Clone" )
122
+ . filter ( |name| name != "Deserialize" )
123
+ . filter ( |name| name != "Serialize" )
124
+ . collect :: < Vec < _ > > ( ) ;
127
125
quote ! (
128
126
#[ derive(
129
127
#( #derives, ) *
You can’t perform that action at this time.
0 commit comments