about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-08-19T15·33+0200
committerflokli <flokli@flokli.de>2023-08-20T21·52+0000
commitc67b18bf450b603cc9ab256ee541d01b4e0f861f (patch)
treeae2c87ffcc6c7ae8909356451c2e59f968c17d4a /tvix/eval
parentaead2001d7c3535be0f2f49daf73fe8a658d0c51 (diff)
refactor(tvix/eval/vm): don't put HashMap in a Box r/6508
HashMap already is on the heap.

Change-Id: I53763e17469359e85862f297b5c2e7c0d8c3a980
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9104
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/vm/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/eval/src/vm/mod.rs b/tvix/eval/src/vm/mod.rs
index b3d6dad93ef3..681b8fb97af4 100644
--- a/tvix/eval/src/vm/mod.rs
+++ b/tvix/eval/src/vm/mod.rs
@@ -219,7 +219,7 @@ impl Frame {
 }
 
 #[derive(Default)]
-struct ImportCache(Box<HashMap<PathBuf, Value>>);
+struct ImportCache(HashMap<PathBuf, Value>);
 
 /// The `ImportCache` holds the `Value` resulting from `import`ing a certain
 /// file, so that the same file doesn't need to be re-evaluated multiple times.