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);