/// ```
pub TO_STRING_IN_DISPLAY,
correctness,
- "to_string method used while implementing Display trait"
+ "`to_string` method used while implementing `Display` trait"
}
#[derive(Default)]
cx,
TO_STRING_IN_DISPLAY,
expr.span,
- "Using to_string in fmt::Display implementation might lead to infinite recursion",
+ "using `to_string` in `fmt::Display` implementation might lead to infinite recursion",
);
}
}
Lint {
name: "to_string_in_display",
group: "correctness",
- desc: "to_string method used while implementing Display trait",
+ desc: "`to_string` method used while implementing `Display` trait",
deprecation: None,
module: "to_string_in_display",
},
-error: Using to_string in fmt::Display implementation might lead to infinite recursion
+error: using `to_string` in `fmt::Display` implementation might lead to infinite recursion
--> $DIR/to_string_in_display.rs:25:25
|
LL | write!(f, "{}", self.to_string())