We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14ad4c0 commit ca11fb4Copy full SHA for ca11fb4
1 file changed
parser/src/fstring.rs
@@ -105,11 +105,12 @@ impl<'a> FStringParser<'a> {
105
'}' if in_nested => {
106
if spec_delims.is_empty() {
107
in_nested = false;
108
+ formatted_value_piece.push(next);
109
spec_constructor.push(
110
self.expr(ExprKind::FormattedValue {
111
value: Box::new(
112
FStringParser::new(
- &format!("{{{}}}", formatted_value_piece),
113
+ &formatted_value_piece,
114
Location::default(),
115
&self.recurse_lvl + 1,
116
)
@@ -135,6 +136,7 @@ impl<'a> FStringParser<'a> {
135
136
kind: None,
137
}));
138
constant_piece.clear();
139
140
}
141
'}' => break,
142
_ => {
0 commit comments