summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-11-06 11:59:35 +0100
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-11-06 12:30:23 +0100
commitc0ab03a132acbfd1b3f4316753b400cb58a085e4 (patch)
tree685b24ac33f5ab6919dfa287f9e2734e1a1b9fc9
parenteaa674ef131f256fd01916f1f4ada6e8b76be749 (diff)
Cargo fmt
-rw-r--r--src/ir/ty.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/ir/ty.rs b/src/ir/ty.rs
index be749268..78c2d459 100644
--- a/src/ir/ty.rs
+++ b/src/ir/ty.rs
@@ -677,9 +677,10 @@ impl Type {
// process of resolving them.
CXType_MemberPointer |
CXType_Pointer => {
- let inner =
- Item::from_ty_or_ref(ty.pointee_type().unwrap(), location,
- parent_id, ctx);
+ let inner = Item::from_ty_or_ref(ty.pointee_type().unwrap(),
+ location,
+ parent_id,
+ ctx);
TypeKind::Pointer(inner)
}
CXType_BlockPointer => TypeKind::BlockPointer,
@@ -687,9 +688,10 @@ impl Type {
// can even add bindings for that, so huh.
CXType_RValueReference |
CXType_LValueReference => {
- let inner =
- Item::from_ty_or_ref(ty.pointee_type().unwrap(), location,
- parent_id, ctx);
+ let inner = Item::from_ty_or_ref(ty.pointee_type().unwrap(),
+ location,
+ parent_id,
+ ctx);
TypeKind::Reference(inner)
}
// XXX DependentSizedArray is wrong