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 127fa33 + 663edd2 commit f07f53bCopy full SHA for f07f53b
compiler/parser/src/string.rs
@@ -111,18 +111,11 @@ pub fn parse_strings(
111
deduped.push(take_current(&mut current));
112
}
113
114
- Ok(if has_fstring {
115
- Expr::new(
116
- initial_start,
117
- last_end,
118
- ExprKind::JoinedStr { values: deduped },
119
- )
120
- } else {
121
- deduped
122
- .into_iter()
123
- .exactly_one()
124
- .expect("String must be concatenated to a single element.")
125
- })
+ Ok(Expr::new(
+ initial_start,
+ last_end,
+ ExprKind::JoinedStr { values: deduped },
+ ))
126
127
128
#[cfg(test)]
0 commit comments