Skip to content

Commit

Permalink
Rustfmt recent changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Jun 7, 2022
1 parent 3d06ae1 commit 4b30c56
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/bindgen/ir/structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ impl Struct {
out,
"return {} {{ static_cast<decltype(bits)>(this->bits {} {}.bits) }};",
self.export_name(),
operator, other
operator,
other
);
out.close_brace(false);

Expand Down Expand Up @@ -554,7 +555,11 @@ impl Source for Struct {
self.export_name()
);
out.open_brace();
write!(out, "return {} {{ static_cast<decltype(bits)>(~bits) }};", self.export_name());
write!(
out,
"return {} {{ static_cast<decltype(bits)>(~bits) }};",
self.export_name()
);
out.close_brace(false);
self.emit_bitflags_binop(constexpr_prefix, '|', &other, out);
self.emit_bitflags_binop(constexpr_prefix, '&', &other, out);
Expand Down

0 comments on commit 4b30c56

Please sign in to comment.