@@ -9,9 +9,8 @@ use std::io::Read;
99use std:: path:: { Path as FilePath , PathBuf as FilePathBuf } ;
1010
1111use crate :: bindgen:: bitflags;
12- use crate :: bindgen:: cargo;
1312use crate :: bindgen:: cargo:: { Cargo , PackageRef } ;
14- use crate :: bindgen:: config:: { Config , ParseConfig , Profile } ;
13+ use crate :: bindgen:: config:: { Config , ParseConfig } ;
1514use crate :: bindgen:: error:: Error ;
1615use crate :: bindgen:: ir:: {
1716 AnnotationSet , Cfg , Constant , Documentation , Enum , Function , GenericParams , ItemMap ,
@@ -192,10 +191,7 @@ impl<'a> Parser<'a> {
192191 self . config . parse . expand . all_features ,
193192 self . config . parse . expand . default_features ,
194193 & self . config . parse . expand . features ,
195- match self . config . parse . expand . profile {
196- Profile :: Debug => cargo:: Profile :: Debug ,
197- Profile :: Release => cargo:: Profile :: Release ,
198- } ,
194+ self . config . parse . expand . profile ,
199195 )
200196 . map_err ( |x| Error :: CargoExpand ( pkg. name . clone ( ) , x) ) ?;
201197 let i = syn:: parse_file ( & s) . map_err ( |x| Error :: ParseSyntaxError {
0 commit comments