about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBruno BELANYI <bruno@belanyi.fr>2020-10-07 17:11:11 +0200
committerGitHub <noreply@github.com>2020-10-07 17:11:11 +0200
commit6edde811b5437f926c26b1b844acd60e3dd0a0c9 (patch)
treeeaffaaa9f48f39db590b4d45efbec4dca955d640
parentaa7c42f75668bc514baf0a64f31771353c3af6cb (diff)
downloadrust-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.rs2
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.
     ///