clippy
This commit is contained in:
parent
8adc4833fa
commit
6ad7a434a7
|
@ -167,11 +167,12 @@ pub fn lex_item(
|
||||||
*curr_offset += 1;
|
*curr_offset += 1;
|
||||||
break;
|
break;
|
||||||
} else if (c == b'\'' || c == b'"' || c == b'`') && quote_start.is_none() {
|
} else if (c == b'\'' || c == b'"' || c == b'`') && quote_start.is_none() {
|
||||||
if *curr_offset > 0 && input.get(*curr_offset - 1) == Some(&b'$') {
|
if *curr_offset > 0
|
||||||
if c == b'\'' || c == b'"' {
|
&& input.get(*curr_offset - 1) == Some(&b'$')
|
||||||
|
&& (c == b'\'' || c == b'"')
|
||||||
|
{
|
||||||
string_interpolation = true;
|
string_interpolation = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// We encountered the opening quote of a string literal.
|
// We encountered the opening quote of a string literal.
|
||||||
quote_start = Some(c);
|
quote_start = Some(c);
|
||||||
} else if c == b'[' {
|
} else if c == b'[' {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user