Fixed compile errors

This commit is contained in:
JarredAllen 2020-07-03 20:28:40 -07:00
parent 1c32263176
commit c8f700ea69
5 changed files with 14 additions and 20 deletions

View file

@ -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,