From bf438d1c7d743b67f0233be5c3a68950866bcc4b Mon Sep 17 00:00:00 2001 From: Adrian Taylor Date: Fri, 21 Feb 2025 14:20:08 +0000 Subject: [PATCH] Rustfmt fixes. --- .../tests/parse_callbacks/item_discovery_callback/mod.rs | 8 ++++---- bindgen/codegen/mod.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bindgen-tests/tests/parse_callbacks/item_discovery_callback/mod.rs b/bindgen-tests/tests/parse_callbacks/item_discovery_callback/mod.rs index 2f64b502dd..6659be62b9 100644 --- a/bindgen-tests/tests/parse_callbacks/item_discovery_callback/mod.rs +++ b/bindgen-tests/tests/parse_callbacks/item_discovery_callback/mod.rs @@ -502,8 +502,8 @@ fn compare_item_info( generated: &ItemCache, expected_filename: &str, ) -> bool { - if std::mem::discriminant(&expected_item.item) - != std::mem::discriminant(&generated_item.0) + if std::mem::discriminant(&expected_item.item) != + std::mem::discriminant(&generated_item.0) { return false; } @@ -800,8 +800,8 @@ pub fn compare_mod_info( unreachable!() }; - if expected_anonymous != generated_anonymous - || *expected_inline != *generated_inline + if expected_anonymous != generated_anonymous || + *expected_inline != *generated_inline { return false; } diff --git a/bindgen/codegen/mod.rs b/bindgen/codegen/mod.rs index 26c5324f7e..4fdc4aa094 100644 --- a/bindgen/codegen/mod.rs +++ b/bindgen/codegen/mod.rs @@ -6003,8 +6003,8 @@ pub(crate) mod utils { fn is_reportable_parent(ctx: &BindgenContext, item: &Item) -> bool { match item.kind() { ItemKind::Module(ref module) => { - !module.is_inline() - || ctx.options().conservative_inline_namespaces + !module.is_inline() || + ctx.options().conservative_inline_namespaces } ItemKind::Type(t) => match t.kind() { TypeKind::Comp(..) | TypeKind::Enum(..) => true,