From 4b30c56928ce74c73ecfdebd42f71d27ba83411e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 7 Jun 2022 21:38:56 +0200 Subject: [PATCH] Rustfmt recent changes. --- src/bindgen/ir/structure.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/bindgen/ir/structure.rs b/src/bindgen/ir/structure.rs index 7851350fe..2cb26a044 100644 --- a/src/bindgen/ir/structure.rs +++ b/src/bindgen/ir/structure.rs @@ -225,7 +225,8 @@ impl Struct { out, "return {} {{ static_cast(this->bits {} {}.bits) }};", self.export_name(), - operator, other + operator, + other ); out.close_brace(false); @@ -554,7 +555,11 @@ impl Source for Struct { self.export_name() ); out.open_brace(); - write!(out, "return {} {{ static_cast(~bits) }};", self.export_name()); + write!( + out, + "return {} {{ static_cast(~bits) }};", + self.export_name() + ); out.close_brace(false); self.emit_bitflags_binop(constexpr_prefix, '|', &other, out); self.emit_bitflags_binop(constexpr_prefix, '&', &other, out);