@@ -91,11 +91,9 @@ declare_clippy_lint! {
91
91
92
92
declare_clippy_lint ! {
93
93
/// ### What it does
94
- /// Checks for a [ `#[must_use]`] attribute on
94
+ /// Checks for a `#[must_use]` attribute on
95
95
/// unit-returning functions and methods.
96
96
///
97
- /// [`#[must_use]`]: https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-must_use-attribute
98
- ///
99
97
/// ### Why is this bad?
100
98
/// Unit values are useless. The attribute is likely
101
99
/// a remnant of a refactoring that removed the return type.
@@ -112,12 +110,10 @@ declare_clippy_lint! {
112
110
113
111
declare_clippy_lint ! {
114
112
/// ### What it does
115
- /// Checks for a [ `#[must_use]`] attribute without
113
+ /// Checks for a `#[must_use]` attribute without
116
114
/// further information on functions and methods that return a type already
117
115
/// marked as `#[must_use]`.
118
116
///
119
- /// [`#[must_use]`]: https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-must_use-attribute
120
- ///
121
117
/// ### Why is this bad?
122
118
/// The attribute isn't needed. Not using the result
123
119
/// will already be reported. Alternatively, one can add some text to the
@@ -138,11 +134,9 @@ declare_clippy_lint! {
138
134
declare_clippy_lint ! {
139
135
/// ### What it does
140
136
/// Checks for public functions that have no
141
- /// [ `#[must_use]`] attribute, but return something not already marked
137
+ /// `#[must_use]` attribute, but return something not already marked
142
138
/// must-use, have no mutable arg and mutate no statics.
143
139
///
144
- /// [`#[must_use]`]: https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-must_use-attribute
145
- ///
146
140
/// ### Why is this bad?
147
141
/// Not bad at all, this lint just shows places where
148
142
/// you could add the attribute.
0 commit comments