File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ fn parse_custom_attribute(
141
141
) ]
142
142
struct BindgenCommand {
143
143
/// C or C++ header file.
144
- header : Option < String > ,
144
+ header : String ,
145
145
/// Path to write depfile to.
146
146
#[ arg( long) ]
147
147
depfile : Option < String > ,
@@ -673,12 +673,6 @@ where
673
673
674
674
let mut builder = builder ( ) ;
675
675
676
- if let Some ( header) = header {
677
- builder = builder. header ( header) ;
678
- } else {
679
- return Err ( io:: Error :: new ( io:: ErrorKind :: Other , "Header not found" ) ) ;
680
- }
681
-
682
676
#[ derive( Debug ) ]
683
677
struct PrefixLinkNameCallback {
684
678
prefix : String ,
@@ -824,8 +818,11 @@ where
824
818
}
825
819
}
826
820
821
+ let header = Some ( header) ;
822
+
827
823
builder = apply_args ! (
828
824
builder {
825
+ header,
829
826
rust_target,
830
827
default_enum_style,
831
828
bitfield_enum,
You can’t perform that action at this time.
0 commit comments