File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ declare_clippy_lint! {
39
39
/// ```
40
40
pub TO_STRING_IN_DISPLAY ,
41
41
correctness,
42
- "to_string method used while implementing Display trait"
42
+ "` to_string` method used while implementing ` Display` trait"
43
43
}
44
44
45
45
#[ derive( Default ) ]
@@ -80,7 +80,7 @@ impl LateLintPass<'_> for ToStringInDisplay {
80
80
cx,
81
81
TO_STRING_IN_DISPLAY ,
82
82
expr. span,
83
- "Using to_string in fmt::Display implementation might lead to infinite recursion" ,
83
+ "using ` to_string` in ` fmt::Display` implementation might lead to infinite recursion" ,
84
84
) ;
85
85
}
86
86
}
Original file line number Diff line number Diff line change @@ -2183,7 +2183,7 @@ pub static ref ALL_LINTS: Vec<Lint> = vec![
2183
2183
Lint {
2184
2184
name: "to_string_in_display" ,
2185
2185
group: "correctness" ,
2186
- desc: "to_string method used while implementing Display trait" ,
2186
+ desc: "` to_string` method used while implementing ` Display` trait" ,
2187
2187
deprecation: None ,
2188
2188
module: "to_string_in_display" ,
2189
2189
} ,
Original file line number Diff line number Diff line change 1
- error: Using to_string in fmt::Display implementation might lead to infinite recursion
1
+ error: using ` to_string` in ` fmt::Display` implementation might lead to infinite recursion
2
2
--> $DIR/to_string_in_display.rs:25:25
3
3
|
4
4
LL | write!(f, "{}", self.to_string())
You can’t perform that action at this time.
0 commit comments