mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-22 11:32:27 +00:00
Avoid unneeded allocations
This commit is contained in:
parent
c4f9aa6fe6
commit
6edab8b7cc
1 changed files with 4 additions and 4 deletions
|
@ -701,8 +701,8 @@ fn synthesize_derived_hash<'a>(
|
|||
// Hash.hash hasher payload
|
||||
let call_member = alloc_expr(ast::Expr::Apply(
|
||||
alloc_expr(ast::Expr::Var {
|
||||
module_name: env.arena.alloc_str("Hash"),
|
||||
ident: env.arena.alloc_str("hash"),
|
||||
module_name: "Hash",
|
||||
ident: "hash",
|
||||
}),
|
||||
&*env.arena.alloc([
|
||||
&*alloc_expr(ast::Expr::Var {
|
||||
|
@ -757,8 +757,8 @@ fn synthesize_derived_is_eq<'a>(
|
|||
// Bool.isEq payload1 payload2
|
||||
let call_member = alloc_expr(ast::Expr::Apply(
|
||||
alloc_expr(ast::Expr::Var {
|
||||
module_name: env.arena.alloc_str("Bool"),
|
||||
ident: env.arena.alloc_str("isEq"),
|
||||
module_name: "Bool",
|
||||
ident: "isEq",
|
||||
}),
|
||||
&*env.arena.alloc([
|
||||
&*alloc_expr(ast::Expr::Var {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue