about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2015-01-05 05:37:11 -0500
committerNiko Matsakis <niko@alum.mit.edu>2015-01-05 07:11:48 -0500
commit7ee58632023c4941408264eeef34a68277773408 (patch)
tree035e866d28fe6be3ca390ca7e79bbcda444924e8
parent9989288438e979ea256fa746e2fe3f7cdc00b001 (diff)
downloadrust-7ee58632023c4941408264eeef34a68277773408.tar.gz
rust-7ee58632023c4941408264eeef34a68277773408.zip
Minor code formatting cleanups.
-rw-r--r--src/librustc_typeck/collect.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/librustc_typeck/collect.rs b/src/librustc_typeck/collect.rs
index 6f5eccfa198..bbafcdae1bb 100644
--- a/src/librustc_typeck/collect.rs
+++ b/src/librustc_typeck/collect.rs
@@ -160,7 +160,9 @@ impl<'a, 'tcx> AstConv<'tcx> for CollectCtxt<'a, 'tcx> {
         }
 
         match self.tcx.map.find(id.node) {
-            Some(ast_map::NodeItem(item)) => ty_of_item(self, &*item),
+            Some(ast_map::NodeItem(item)) => {
+                ty_of_item(self, &*item)
+            }
             Some(ast_map::NodeForeignItem(foreign_item)) => {
                 let abi = self.tcx.map.get_foreign_abi(id.node);
                 ty_of_foreign_item(self, &*foreign_item, abi)
@@ -819,8 +821,8 @@ fn get_trait_def<'a, 'tcx>(ccx: &CollectCtxt<'a, 'tcx>,
 }
 
 fn trait_def_of_item<'a, 'tcx>(ccx: &CollectCtxt<'a, 'tcx>,
-                                   it: &ast::Item)
-                                   -> Rc<ty::TraitDef<'tcx>>
+                               it: &ast::Item)
+                               -> Rc<ty::TraitDef<'tcx>>
 {
     let def_id = local_def(it.id);
     let tcx = ccx.tcx;