@@ -91,11 +91,9 @@ declare_clippy_lint! {
9191
9292declare_clippy_lint ! {
9393 /// ### What it does
94- /// Checks for a [ `#[must_use]`] attribute on
94+ /// Checks for a `#[must_use]` attribute on
9595 /// unit-returning functions and methods.
9696 ///
97- /// [`#[must_use]`]: https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-must_use-attribute
98- ///
9997 /// ### Why is this bad?
10098 /// Unit values are useless. The attribute is likely
10199 /// a remnant of a refactoring that removed the return type.
@@ -112,12 +110,10 @@ declare_clippy_lint! {
112110
113111declare_clippy_lint ! {
114112 /// ### What it does
115- /// Checks for a [ `#[must_use]`] attribute without
113+ /// Checks for a `#[must_use]` attribute without
116114 /// further information on functions and methods that return a type already
117115 /// marked as `#[must_use]`.
118116 ///
119- /// [`#[must_use]`]: https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-must_use-attribute
120- ///
121117 /// ### Why is this bad?
122118 /// The attribute isn't needed. Not using the result
123119 /// will already be reported. Alternatively, one can add some text to the
@@ -138,11 +134,9 @@ declare_clippy_lint! {
138134declare_clippy_lint ! {
139135 /// ### What it does
140136 /// 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
142138 /// must-use, have no mutable arg and mutate no statics.
143139 ///
144- /// [`#[must_use]`]: https://doc.rust-lang.org/reference/attributes/diagnostics.html#the-must_use-attribute
145- ///
146140 /// ### Why is this bad?
147141 /// Not bad at all, this lint just shows places where
148142 /// you could add the attribute.
0 commit comments