about summary refs log tree commit diff
path: root/tvix/eval/src/compiler
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-02-26T15·22+0300
committerclbot <clbot@tvl.fyi>2023-03-03T11·01+0000
commit344c1193700370f4762ae709c076aae11ca50b18 (patch)
tree932bba9a369c7e2feb82aef4671fa6b2fae04267 /tvix/eval/src/compiler
parent7e9a65dcdb38c247f742a181a94a452df6802fbb (diff)
chore(tvix/eval): fix clippy warnings r/5870
Change-Id: I4c02f0104c455ac00a3f299c1fbf75cbb08e8972
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8142
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/eval/src/compiler')
-rw-r--r--tvix/eval/src/compiler/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs
index 31e96955f0..83b1f01a80 100644
--- a/tvix/eval/src/compiler/mod.rs
+++ b/tvix/eval/src/compiler/mod.rs
@@ -85,7 +85,7 @@ pub(crate) type GlobalsMap = HashMap<&'static str, Value>;
 /// the global scope, meaning that they can be accessed not just
 /// through `builtins.<name>`, but directly as `<name>`. This is not
 /// configurable, it is based on what Nix 2.3 exposed.
-const GLOBAL_BUILTINS: &'static [&'static str] = &[
+const GLOBAL_BUILTINS: &[&str] = &[
     "abort",
     "baseNameOf",
     "derivation",
@@ -1408,7 +1408,7 @@ pub fn prepare_globals(
         // If "source builtins" were supplied, compile them and insert
         // them.
         builtins.extend(src_builtins.into_iter().map(move |(name, code)| {
-            let compiled = compile_src_builtin(name, code, &source, &weak);
+            let compiled = compile_src_builtin(name, code, &source, weak);
             (name, compiled)
         }));