about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Arundel <john@bitfieldconsulting.com>2024-07-08 19:05:35 +0100
committerJohn Arundel <john@bitfieldconsulting.com>2024-07-08 19:05:35 +0100
commitd23df7471298610f7afc68635fbc005e07a16f6b (patch)
treeba64a4c92b1ae4c3b9f9552dcaf77471e366eeb3
parent5a9e5e4acf537bca80dc505c48148c952b85a264 (diff)
downloadrust-d23df7471298610f7afc68635fbc005e07a16f6b.tar.gz
rust-d23df7471298610f7afc68635fbc005e07a16f6b.zip
resolve code review comments
-rw-r--r--clippy_lints/src/await_holding_invalid.rs2
-rw-r--r--clippy_lints/src/casts/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/await_holding_invalid.rs b/clippy_lints/src/await_holding_invalid.rs
index 1a4dc38e7e9..d4a1e2780d0 100644
--- a/clippy_lints/src/await_holding_invalid.rs
+++ b/clippy_lints/src/await_holding_invalid.rs
@@ -23,7 +23,7 @@ declare_clippy_lint! {
     /// type. Many asynchronous foundation crates provide such a `Mutex` type.
     /// The other solution is to ensure the mutex is unlocked before calling
     /// `await`, either by introducing a scope or an explicit call to
-    /// [`Drop::drop`].
+    /// [`Drop::drop`](https://doc.rust-lang.org/std/ops/trait.Drop.html).
     ///
     /// ### Known problems
     /// Will report false positive for explicitly dropped guards
diff --git a/clippy_lints/src/casts/mod.rs b/clippy_lints/src/casts/mod.rs
index 14f9f991d3b..54f0c7c4687 100644
--- a/clippy_lints/src/casts/mod.rs
+++ b/clippy_lints/src/casts/mod.rs
@@ -219,7 +219,7 @@ declare_clippy_lint! {
     /// Dereferencing the resulting pointer may be undefined behavior.
     ///
     /// ### Known problems
-    /// Using [`std::ptr::read_unaligned`] and [`std::ptr::write_unaligned`] or
+    /// Using [`std::ptr::read_unaligned`](https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html) and [`std::ptr::write_unaligned`](https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html) or
     /// similar on the resulting pointer is fine. Is over-zealous: casts with
     /// manual alignment checks or casts like `u64` -> `u8` -> `u16` can be
     /// fine. Miri is able to do a more in-depth analysis.