summaryrefslogtreecommitdiff
path: root/libbindgen/src/codegen/mod.rs
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2016-12-29 16:52:31 -0800
committerNick Fitzgerald <fitzgen@gmail.com>2016-12-29 16:54:37 -0800
commit291174b20f1f8d2aa65a133bac0a2ba77148503e (patch)
tree280a61f07e8a139cad355356901c0ef2d0058634 /libbindgen/src/codegen/mod.rs
parentbc08b355b2daf10565d368a87462c6d882460e55 (diff)
Run `cargo fmt` on `libbindgen`
Diffstat (limited to 'libbindgen/src/codegen/mod.rs')
-rw-r--r--libbindgen/src/codegen/mod.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbindgen/src/codegen/mod.rs b/libbindgen/src/codegen/mod.rs
index 12aa7223..5515527e 100644
--- a/libbindgen/src/codegen/mod.rs
+++ b/libbindgen/src/codegen/mod.rs
@@ -770,7 +770,8 @@ impl CodeGenerator for CompInfo {
derives.push("Debug");
}
- if item.can_derive_copy(ctx, ()) && !item.annotations().disallow_copy() {
+ if item.can_derive_copy(ctx, ()) &&
+ !item.annotations().disallow_copy() {
derives.push("Copy");
if !applicable_template_args.is_empty() {
// FIXME: This requires extra logic if you have a big array in a
@@ -895,7 +896,7 @@ impl CodeGenerator for CompInfo {
// Try to catch a bitfield contination early.
if let (Some(ref mut bitfield_width), Some(width)) =
- (current_bitfield_width, field.bitfield()) {
+ (current_bitfield_width, field.bitfield()) {
let layout = current_bitfield_layout.unwrap();
debug!("Testing bitfield continuation {} {} {:?}",
*bitfield_width, width, layout);