File tree 2 files changed +6
-6
lines changed
bindgen-tests/tests/parse_callbacks/item_discovery_callback
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -502,8 +502,8 @@ fn compare_item_info(
502
502
generated : & ItemCache ,
503
503
expected_filename : & str ,
504
504
) -> bool {
505
- if std:: mem:: discriminant ( & expected_item. item )
506
- != std:: mem:: discriminant ( & generated_item. 0 )
505
+ if std:: mem:: discriminant ( & expected_item. item ) !=
506
+ std:: mem:: discriminant ( & generated_item. 0 )
507
507
{
508
508
return false ;
509
509
}
@@ -800,8 +800,8 @@ pub fn compare_mod_info(
800
800
unreachable ! ( )
801
801
} ;
802
802
803
- if expected_anonymous != generated_anonymous
804
- || * expected_inline != * generated_inline
803
+ if expected_anonymous != generated_anonymous ||
804
+ * expected_inline != * generated_inline
805
805
{
806
806
return false ;
807
807
}
Original file line number Diff line number Diff line change @@ -6003,8 +6003,8 @@ pub(crate) mod utils {
6003
6003
fn is_reportable_parent ( ctx : & BindgenContext , item : & Item ) -> bool {
6004
6004
match item. kind ( ) {
6005
6005
ItemKind :: Module ( ref module) => {
6006
- !module. is_inline ( )
6007
- || ctx. options ( ) . conservative_inline_namespaces
6006
+ !module. is_inline ( ) ||
6007
+ ctx. options ( ) . conservative_inline_namespaces
6008
6008
}
6009
6009
ItemKind :: Type ( t) => match t. kind ( ) {
6010
6010
TypeKind :: Comp ( ..) | TypeKind :: Enum ( ..) => true ,
You can’t perform that action at this time.
0 commit comments