diff options
| author | Bruno BELANYI <bruno@belanyi.fr> | 2020-10-07 17:11:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-07 17:11:11 +0200 |
| commit | 6edde811b5437f926c26b1b844acd60e3dd0a0c9 (patch) | |
| tree | eaffaaa9f48f39db590b4d45efbec4dca955d640 | |
| parent | aa7c42f75668bc514baf0a64f31771353c3af6cb (diff) | |
| download | rust-6edde811b5437f926c26b1b844acd60e3dd0a0c9.tar.gz rust-6edde811b5437f926c26b1b844acd60e3dd0a0c9.zip | |
fixup! New lint: Recommend using `ptr::eq` when possible
Co-authored-by: Takayuki Nakata <f.seasons017@gmail.com>
| -rw-r--r-- | clippy_lints/src/ptr_eq.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/ptr_eq.rs b/clippy_lints/src/ptr_eq.rs index a05cb6270b7..3be792ce5e4 100644 --- a/clippy_lints/src/ptr_eq.rs +++ b/clippy_lints/src/ptr_eq.rs @@ -8,7 +8,7 @@ use rustc_session::{declare_lint_pass, declare_tool_lint}; declare_clippy_lint! { /// **What it does:** Use `std::ptr::eq` when applicable /// - /// **Why is this bad?**`ptr::eq` can be used to compare `&T` references + /// **Why is this bad?** `ptr::eq` can be used to compare `&T` references /// (which coerce to `*const T` implicitly) by their address rather than /// comparing the values they point to. /// |
