@@ -38,7 +38,7 @@ declare_clippy_lint! {
38
38
/// ```
39
39
pub IFS_SAME_COND ,
40
40
correctness,
41
- "consecutive `ifs` with the same condition"
41
+ "consecutive `if`s with the same condition"
42
42
}
43
43
44
44
declare_clippy_lint ! {
@@ -85,7 +85,7 @@ declare_clippy_lint! {
85
85
/// ```
86
86
pub SAME_FUNCTIONS_IN_IF_CONDITION ,
87
87
pedantic,
88
- "consecutive `ifs` with the same function call"
88
+ "consecutive `if`s with the same function call"
89
89
}
90
90
91
91
declare_clippy_lint ! {
@@ -106,7 +106,7 @@ declare_clippy_lint! {
106
106
/// ```
107
107
pub IF_SAME_THEN_ELSE ,
108
108
correctness,
109
- "if with the same * then* and * else* blocks"
109
+ "`if` with the same ` then` and ` else` blocks"
110
110
}
111
111
112
112
declare_clippy_lint ! {
@@ -206,7 +206,7 @@ fn lint_same_cond(cx: &LateContext<'_, '_>, conds: &[&Expr<'_>]) {
206
206
cx,
207
207
IFS_SAME_COND ,
208
208
j. span ,
209
- "this `if` has the same condition as a previous if " ,
209
+ "this `if` has the same condition as a previous `if` " ,
210
210
i. span ,
211
211
"same as this" ,
212
212
) ;
@@ -234,7 +234,7 @@ fn lint_same_fns_in_if_cond(cx: &LateContext<'_, '_>, conds: &[&Expr<'_>]) {
234
234
cx,
235
235
SAME_FUNCTIONS_IN_IF_CONDITION ,
236
236
j. span ,
237
- "this `if` has the same function call as a previous if " ,
237
+ "this `if` has the same function call as a previous `if` " ,
238
238
i. span ,
239
239
"same as this" ,
240
240
) ;
@@ -300,7 +300,7 @@ fn lint_match_arms<'tcx>(cx: &LateContext<'_, 'tcx>, expr: &Expr<'_>) {
300
300
db. span_note (
301
301
i. body . span ,
302
302
& format ! (
303
- "`{}` has the same arm body as the `_` wildcard, consider removing it` " ,
303
+ "`{}` has the same arm body as the `_` wildcard, consider removing it" ,
304
304
lhs
305
305
) ,
306
306
) ;
0 commit comments