Skip to content

Commit

Permalink
Rustfmt fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
adetaylor committed Feb 21, 2025
1 parent 8dbc5b6 commit bf438d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions bindgen/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bf438d1

Please sign in to comment.