Skip to content

Commit d23df74

Browse files
committed
resolve code review comments
1 parent 5a9e5e4 commit d23df74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/await_holding_invalid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ declare_clippy_lint! {
2323
/// type. Many asynchronous foundation crates provide such a `Mutex` type.
2424
/// The other solution is to ensure the mutex is unlocked before calling
2525
/// `await`, either by introducing a scope or an explicit call to
26-
/// [`Drop::drop`].
26+
/// [`Drop::drop`](https://doc.rust-lang.org/std/ops/trait.Drop.html).
2727
///
2828
/// ### Known problems
2929
/// Will report false positive for explicitly dropped guards

clippy_lints/src/casts/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ declare_clippy_lint! {
219219
/// Dereferencing the resulting pointer may be undefined behavior.
220220
///
221221
/// ### Known problems
222-
/// Using [`std::ptr::read_unaligned`] and [`std::ptr::write_unaligned`] or
222+
/// 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
223223
/// similar on the resulting pointer is fine. Is over-zealous: casts with
224224
/// manual alignment checks or casts like `u64` -> `u8` -> `u16` can be
225225
/// fine. Miri is able to do a more in-depth analysis.

0 commit comments

Comments
 (0)