Update clippy_lints/src/ref_option_ref.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
This commit is contained in:
parent
8e26004a5f
commit
1566db704d
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user