Skip to content

Commit 1566db7

Browse files
dvermdflip1995
andcommitted
Update clippy_lints/src/ref_option_ref.rs
Co-authored-by: Philipp Krones <hello@philkrones.com>
1 parent 8e26004 commit 1566db7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/ref_option_ref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl<'tcx> LateLintPass<'tcx> for RefOptionRef {
4040
if let Some(res) = last.res;
4141
if let Some(def_id) = res.opt_def_id();
4242

43-
if match_def_path(cx, def_id, &paths::OPTION);
43+
if cx.tcx.is_diagnostic_item(sym!(option_type), def_id);
4444
if let Some(ref params) = last_path_segment(qpath).args ;
4545
if !params.parenthesized;
4646
if let Some(inner_ty) = params.args.iter().find_map(|arg| match arg {

0 commit comments

Comments
 (0)