We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 057c15c + 747ce20 commit a1882b2Copy full SHA for a1882b2
impl/src/fmt.rs
@@ -93,11 +93,6 @@ impl Display<'_> {
93
if formatvar.to_string().starts_with("r#") {
94
formatvar = format_ident!("r_{}", formatvar);
95
}
96
- if formatvar.to_string().starts_with('_') {
97
- // Work around leading underscore being rejected by 1.40 and
98
- // older compilers. https://github.com/rust-lang/rust/pull/66847
99
- formatvar = format_ident!("field_{}", formatvar);
100
- }
101
out += &formatvar.to_string();
102
if !named_args.insert(formatvar.clone()) {
103
// Already specified in the format argument list.
0 commit comments