Format PR 361 with rustfmt
diff --git a/gen/src/write.rs b/gen/src/write.rs
index 9b4e120..3184604 100644
--- a/gen/src/write.rs
+++ b/gen/src/write.rs
@@ -1245,12 +1245,13 @@
let instance = to_mangled(&out.namespace, ty);
let can_construct_from_value = match ty {
- // Some aliases are to opaque types; some are to trivial types.
- // We can't know at code generation time, so we generate both C++
- // and Rust side bindings for a "new" method anyway. But the Rust
- // code can't be called for Opaque types because the 'new'
- // method is not implemented.
- Type::Ident(ident) => types.structs.contains_key(ident) || types.aliases.contains_key(ident),
+ // Some aliases are to opaque types; some are to trivial types. We can't
+ // know at code generation time, so we generate both C++ and Rust side
+ // bindings for a "new" method anyway. But the Rust code can't be called
+ // for Opaque types because the 'new' method is not implemented.
+ Type::Ident(ident) => {
+ types.structs.contains_key(ident) || types.aliases.contains_key(ident)
+ }
_ => false,
};