Skip to content

Commit 6edde81

Browse files
ambroisiegiraffate
andauthored
fixup! New lint: Recommend using ptr::eq when possible
Co-authored-by: Takayuki Nakata <f.seasons017@gmail.com>
1 parent aa7c42f commit 6edde81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/ptr_eq.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use rustc_session::{declare_lint_pass, declare_tool_lint};
88
declare_clippy_lint! {
99
/// **What it does:** Use `std::ptr::eq` when applicable
1010
///
11-
/// **Why is this bad?**`ptr::eq` can be used to compare `&T` references
11+
/// **Why is this bad?** `ptr::eq` can be used to compare `&T` references
1212
/// (which coerce to `*const T` implicitly) by their address rather than
1313
/// comparing the values they point to.
1414
///

0 commit comments

Comments
 (0)