We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebeb090 commit 3a6729eCopy full SHA for 3a6729e
compiler/parser/src/string.rs
@@ -15,7 +15,7 @@ pub fn parse_strings(
15
let initial_kind = (values[0].1 .1 == StringKind::U).then(|| "u".to_owned());
16
17
// Optimization: fast-track the common case of a single string.
18
- if values.len() == 1 && matches!(&values[0].1 .1, StringKind::Normal | StringKind::U) {
+ if matches!(&*values, [(_, (_, StringKind::Normal | StringKind::U), _)]) {
19
let value = values.into_iter().last().unwrap().1 .0;
20
return Ok(Expr::new(
21
initial_start,
0 commit comments