diff --git a/crates/turbopack-ecmascript/src/references/unreachable.rs b/crates/turbopack-ecmascript/src/references/unreachable.rs index 352e7f240ffa6..d8f199d1215bc 100644 --- a/crates/turbopack-ecmascript/src/references/unreachable.rs +++ b/crates/turbopack-ecmascript/src/references/unreachable.rs @@ -222,7 +222,7 @@ fn collect_idents(pat: &Pat, idents: &mut Vec) { for prop in props.iter() { match prop { ObjectPatProp::KeyValue(KeyValuePatProp { value, .. }) => { - collect_idents(&value, idents); + collect_idents(value, idents); } ObjectPatProp::Assign(AssignPatProp { key, .. }) => { idents.push(key.id.clone());