minor cleanup

This commit is contained in:
Mark Mansi 2020-01-24 12:02:33 -06:00 committed by mark
parent 7f7709e3d4
commit 4d22e757cd

View file

@ -148,10 +148,10 @@ impl<'tcx> DefiningTy<'tcx> {
pub fn def_id(&self) -> DefId {
match *self {
DefiningTy::Closure(def_id, ..) => def_id,
DefiningTy::Generator(def_id, ..) => def_id,
DefiningTy::FnDef(def_id, ..) => def_id,
DefiningTy::Const(def_id, ..) => def_id,
DefiningTy::Closure(def_id, ..)
| DefiningTy::Generator(def_id, ..)
| DefiningTy::FnDef(def_id, ..)
| DefiningTy::Const(def_id, ..) => def_id,
}
}
}