minor cleanup
This commit is contained in:
parent
7f7709e3d4
commit
4d22e757cd
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue