Update clippy_lints/src/ref_option_ref.rs

Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
dvermd 2020-10-19 21:38:36 +02:00
parent 8e26004a5f
commit 1566db704d

View File

@ -40,7 +40,7 @@ impl<'tcx> LateLintPass<'tcx> for RefOptionRef {
if let Some(res) = last.res;
if let Some(def_id) = res.opt_def_id();
if match_def_path(cx, def_id, &paths::OPTION);
if cx.tcx.is_diagnostic_item(sym!(option_type), def_id);
if let Some(ref params) = last_path_segment(qpath).args ;
if !params.parenthesized;
if let Some(inner_ty) = params.args.iter().find_map(|arg| match arg {