avoid unnecessary `Cow`
commit46134d62227fe72a5b0673a525589c72a25f98eb
authorSteve Cao <shiqicao@fb.com>
Fri, 4 Jun 2021 19:18:32 +0000 (4 12:18 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 4 Jun 2021 19:19:31 +0000 (4 12:19 -0700)
tree3d1228e822f5d8507ba3c3260ed77f27ba634330
parentbb1ebbd0bdf01641e1cf67cfe95a97f377a2bb88
avoid unnecessary `Cow`

Summary:
- avoid unnecessary `Cow`,
- avoid unnecessary `to_owned` to avoid allocation,
- remove unused parameter,

Reviewed By: Wilfred

Differential Revision: D28903342

fbshipit-source-id: 5ad53301a9d381ced4bd8a28a2ac883c4fa63e6e
hphp/hack/src/hhbc/hhbc_by_ref/emit_statement.rs
hphp/hack/src/hhbc/hhbc_by_ref/emit_type_constant.rs
hphp/hack/src/hhbc/hhbc_by_ref/emit_type_hint.rs
hphp/hack/src/hhbc/hhbc_by_ref/emit_xhp.rs
hphp/hack/src/hhbc/hhbc_by_ref/typed_value.rs