diff options
Diffstat (limited to 'tvix/eval/src/compiler.rs')
-rw-r--r-- | tvix/eval/src/compiler.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/eval/src/compiler.rs b/tvix/eval/src/compiler.rs index b9e850a36b7e..622acf982252 100644 --- a/tvix/eval/src/compiler.rs +++ b/tvix/eval/src/compiler.rs @@ -105,7 +105,7 @@ impl Compiler { let ident = rnix::types::Ident::cast(node).unwrap(); let idx = self .chunk - .add_constant(Value::String(ident.as_str().to_string().into())); + .add_constant(Value::String(ident.as_str().into())); self.chunk.add_op(OpCode::OpConstant(idx)); return Ok(()); } @@ -275,7 +275,7 @@ impl Compiler { // TODO(tazjin): intern! let idx = self .chunk - .add_constant(Value::String(ident.as_str().to_string().into())); + .add_constant(Value::String(ident.as_str().into())); self.chunk.add_op(OpCode::OpConstant(idx)); } |