refactor: fix warns

This commit is contained in:
Shunsuke Shibayama 2023-12-29 12:30:41 +09:00
parent cf726fe4a8
commit edfabd97e7
14 changed files with 22 additions and 22 deletions

View file

@ -2776,7 +2776,7 @@ impl Parser {
ArrayInner::Normal(mut elems) => {
let elems = if elems
.pos_args()
.get(0)
.first()
.map(|pos| match &pos.expr {
Expr::Tuple(tup) => tup.paren().is_none(),
_ => false,