Fixed compile errors
This commit is contained in:
parent
1c32263176
commit
c8f700ea69
5 changed files with 14 additions and 20 deletions
|
|
@ -164,7 +164,7 @@ fn check_local<'tcx>(cx: &LateContext<'tcx>, local: &'tcx Local<'_>, bindings: &
|
|||
}
|
||||
|
||||
fn is_binding(cx: &LateContext<'_>, pat_id: HirId) -> bool {
|
||||
let var_ty = cx.tables.node_type_opt(pat_id);
|
||||
let var_ty = cx.tables().node_type_opt(pat_id);
|
||||
var_ty.map_or(false, |var_ty| match var_ty.kind {
|
||||
ty::Adt(..) => false,
|
||||
_ => true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue