diff options
author | Vincent Ambo <mail@tazj.in> | 2022-09-29T17·38+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-30T12·31+0000 |
commit | 6c5e83f8bca990235193a3ef3406a33d6fdf581d (patch) | |
tree | c39035b6f5b62f780272602e290f8bd88d63d20b /tvix/eval | |
parent | f0f5435e25541c6f1ae17e77d44c54df881320cc (diff) |
chore(tvix/eval): remove unused field in TrackedBindings r/5004
Change-Id: I65e31e9173e4f5bba19cc4e3d45eb4f8bf91b424 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6808 Reviewed-by: grfn <grfn@gws.fyi> Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval')
-rw-r--r-- | tvix/eval/src/compiler/bindings.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tvix/eval/src/compiler/bindings.rs b/tvix/eval/src/compiler/bindings.rs index f023e67b5d3e..a9532cc36b14 100644 --- a/tvix/eval/src/compiler/bindings.rs +++ b/tvix/eval/src/compiler/bindings.rs @@ -196,16 +196,12 @@ impl TrackedBinding { } struct TrackedBindings { - kind: BindingsKind, bindings: Vec<TrackedBinding>, } impl TrackedBindings { - fn new(kind: BindingsKind) -> Self { - TrackedBindings { - kind, - bindings: vec![], - } + fn new() -> Self { + TrackedBindings { bindings: vec![] } } /// Attempt to merge an entry into an existing matching binding, assuming @@ -633,7 +629,7 @@ impl Compiler<'_> { self.scope_mut().begin_scope(); // Vector to track all observed bindings. - let mut bindings = TrackedBindings::new(kind); + let mut bindings = TrackedBindings::new(); let inherit_froms = self.compile_plain_inherits(slot, kind, &mut count, node); self.declare_namespaced_inherits(kind, inherit_froms, &mut bindings); |