Skip to content

Commit bf438d1

Browse files
committed
Rustfmt fixes.
1 parent 8dbc5b6 commit bf438d1

File tree

2 files changed

+6
-6
lines changed
  • bindgen/codegen
  • bindgen-tests/tests/parse_callbacks/item_discovery_callback

2 files changed

+6
-6
lines changed

bindgen-tests/tests/parse_callbacks/item_discovery_callback/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@ fn compare_item_info(
502502
generated: &ItemCache,
503503
expected_filename: &str,
504504
) -> 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)
507507
{
508508
return false;
509509
}
@@ -800,8 +800,8 @@ pub fn compare_mod_info(
800800
unreachable!()
801801
};
802802

803-
if expected_anonymous != generated_anonymous
804-
|| *expected_inline != *generated_inline
803+
if expected_anonymous != generated_anonymous ||
804+
*expected_inline != *generated_inline
805805
{
806806
return false;
807807
}

bindgen/codegen/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6003,8 +6003,8 @@ pub(crate) mod utils {
60036003
fn is_reportable_parent(ctx: &BindgenContext, item: &Item) -> bool {
60046004
match item.kind() {
60056005
ItemKind::Module(ref module) => {
6006-
!module.is_inline()
6007-
|| ctx.options().conservative_inline_namespaces
6006+
!module.is_inline() ||
6007+
ctx.options().conservative_inline_namespaces
60086008
}
60096009
ItemKind::Type(t) => match t.kind() {
60106010
TypeKind::Comp(..) | TypeKind::Enum(..) => true,

0 commit comments

Comments
 (0)