Skip to content

Commit 7ee5863

Browse files
committed
Minor code formatting cleanups.
1 parent 9989288 commit 7ee5863

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/librustc_typeck/collect.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,9 @@ impl<'a, 'tcx> AstConv<'tcx> for CollectCtxt<'a, 'tcx> {
160160
}
161161

162162
match self.tcx.map.find(id.node) {
163-
Some(ast_map::NodeItem(item)) => ty_of_item(self, &*item),
163+
Some(ast_map::NodeItem(item)) => {
164+
ty_of_item(self, &*item)
165+
}
164166
Some(ast_map::NodeForeignItem(foreign_item)) => {
165167
let abi = self.tcx.map.get_foreign_abi(id.node);
166168
ty_of_foreign_item(self, &*foreign_item, abi)
@@ -819,8 +821,8 @@ fn get_trait_def<'a, 'tcx>(ccx: &CollectCtxt<'a, 'tcx>,
819821
}
820822

821823
fn trait_def_of_item<'a, 'tcx>(ccx: &CollectCtxt<'a, 'tcx>,
822-
it: &ast::Item)
823-
-> Rc<ty::TraitDef<'tcx>>
824+
it: &ast::Item)
825+
-> Rc<ty::TraitDef<'tcx>>
824826
{
825827
let def_id = local_def(it.id);
826828
let tcx = ccx.tcx;

0 commit comments

Comments
 (0)