]> git.lizzy.rs Git - rust.git/commitdiff
Minor code formatting cleanups.
authorNiko Matsakis <niko@alum.mit.edu>
Mon, 5 Jan 2015 10:37:11 +0000 (05:37 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Mon, 5 Jan 2015 12:11:48 +0000 (07:11 -0500)
src/librustc_typeck/collect.rs

index 6f5eccfa198a03b53f584213a2c1b47b1ec16406..bbafcdae1bba104b27a4ad05f95b2f03834fd224 100644 (file)
@@ -160,7 +160,9 @@ fn get_item_type_scheme(&self, id: ast::DefId) -> ty::TypeScheme<'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;