Skip to content

Commit ea02849

Browse files
committed
Make a reference a link in doc
1 parent 13ca5c8 commit ea02849

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

clippy_lints/src/comparison_chain.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ declare_clippy_lint! {
1313
/// repetitive
1414
///
1515
/// **Known problems:** The match statement may be slower due to the compiler
16-
/// not inlining the call to cmp. See issue #5354
16+
/// not inlining the call to cmp. See issue [#5354](https://github.com/rust-lang/rust-clippy/issues/5354)
1717
///
1818
/// **Example:**
1919
/// ```rust,ignore

clippy_lints/src/eta_reduction.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare_clippy_lint! {
2222
/// **Known problems:** If creating the closure inside the closure has a side-
2323
/// effect then moving the closure creation out will change when that side-
2424
/// effect runs.
25-
/// See rust-lang/rust-clippy#1439 for more details.
25+
/// See [#1439](https://github.com/rust-lang/rust-clippy/issues/1439) for more details.
2626
///
2727
/// **Example:**
2828
/// ```rust,ignore
@@ -45,8 +45,9 @@ declare_clippy_lint! {
4545
///
4646
/// **Why is this bad?** It's unnecessary to create the closure.
4747
///
48-
/// **Known problems:** rust-lang/rust-clippy#3071, rust-lang/rust-clippy#4002,
49-
/// rust-lang/rust-clippy#3942
48+
/// **Known problems:** [#3071](https://github.com/rust-lang/rust-clippy/issues/3071),
49+
/// [#3942](https://github.com/rust-lang/rust-clippy/issues/3942),
50+
/// [#4002](https://github.com/rust-lang/rust-clippy/issues/4002)
5051
///
5152
///
5253
/// **Example:**

clippy_lints/src/loops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ declare_clippy_lint! {
218218
/// **Why is this bad?** The `while let` loop is usually shorter and more
219219
/// readable.
220220
///
221-
/// **Known problems:** Sometimes the wrong binding is displayed (#383).
221+
/// **Known problems:** Sometimes the wrong binding is displayed ([#383](https://github.com/rust-lang/rust-clippy/issues/383)).
222222
///
223223
/// **Example:**
224224
/// ```rust,no_run

clippy_lints/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ declare_clippy_lint! {
7575
/// **Why is this bad?** `Vec` already keeps its contents in a separate area on
7676
/// the heap. So if you `Box` its contents, you just add another level of indirection.
7777
///
78-
/// **Known problems:** Vec<Box<T: Sized>> makes sense if T is a large type (see #3530,
78+
/// **Known problems:** Vec<Box<T: Sized>> makes sense if T is a large type (see [#3530](https://github.com/rust-lang/rust-clippy/issues/3530),
7979
/// 1st comment).
8080
///
8181
/// **Example:**

clippy_lints/src/use_self.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ declare_clippy_lint! {
2828
/// feels inconsistent.
2929
///
3030
/// **Known problems:**
31-
/// - False positive when using associated types (#2843)
32-
/// - False positives in some situations when using generics (#3410)
31+
/// - False positive when using associated types ([#2843](https://github.com/rust-lang/rust-clippy/issues/2843))
32+
/// - False positives in some situations when using generics ([#3410](https://github.com/rust-lang/rust-clippy/issues/3410))
3333
///
3434
/// **Example:**
3535
/// ```rust

0 commit comments

Comments
 (0)