diff options
| author | dvermd <315743+dvermd@users.noreply.github.com> | 2020-10-19 21:38:36 +0200 |
|---|---|---|
| committer | dvermd <315743+dvermd@users.noreply.github.com> | 2020-10-26 22:34:43 +0100 |
| commit | 1566db704d113ea6ed90f2b3927306bd84946dc2 (patch) | |
| tree | aec664f9929f89c4db425e7d5b061597b0c61d17 | |
| parent | 8e26004a5ff2d16a7ad37723f5d284703cff2b94 (diff) | |
| download | rust-1566db704d113ea6ed90f2b3927306bd84946dc2.tar.gz rust-1566db704d113ea6ed90f2b3927306bd84946dc2.zip | |
Update clippy_lints/src/ref_option_ref.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
| -rw-r--r-- | clippy_lints/src/ref_option_ref.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/ref_option_ref.rs b/clippy_lints/src/ref_option_ref.rs index 902cd06f527..4ab2d8025e0 100644 --- a/clippy_lints/src/ref_option_ref.rs +++ b/clippy_lints/src/ref_option_ref.rs @@ -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 { |
