@@ -847,19 +847,14 @@ where
847
847
}
848
848
}
849
849
850
- pub struct LintedBuildSpec {
851
- build_spec : BuildSpec ,
852
- lints : Vec < Lint > ,
853
- }
854
-
855
850
#[ derive( FieldNamesAsArray ) ]
856
851
struct SpecVisitor < B , T > {
857
852
pkg : Option < Ident < B , T > > ,
858
853
meta : Option < LintedItem < Meta > > ,
859
854
compat : Option < Compat > ,
860
855
deprecated : Option < bool > ,
861
856
sources : Option < Vec < LintedItem < SourceSpec > > > ,
862
- build : Option < LintedBuildSpec > ,
857
+ build : Option < LintedItem < BuildSpec > > ,
863
858
tests : Option < Vec < LintedItem < TestSpec > > > ,
864
859
install : Option < LintedItem < InstallSpec > > ,
865
860
#[ field_names_as_array( skip) ]
@@ -907,7 +902,7 @@ where
907
902
. collect_vec ( )
908
903
} ,
909
904
build : match value. build . take ( ) {
910
- Some ( build) => build. build_spec ,
905
+ Some ( build) => build. item ,
911
906
None => Default :: default ( ) ,
912
907
} ,
913
908
tests : value
@@ -1004,7 +999,10 @@ where
1004
999
build. item . try_into ( ) . map_err ( serde:: de:: Error :: custom) ?
1005
1000
} ;
1006
1001
1007
- Some ( LintedBuildSpec { build_spec, lints } )
1002
+ Some ( LintedItem {
1003
+ item : build_spec,
1004
+ lints,
1005
+ } )
1008
1006
}
1009
1007
}
1010
1008
"tests" => self . tests = Some ( map. next_value :: < Vec < LintedItem < TestSpec > > > ( ) ?) ,
0 commit comments