From 344c1193700370f4762ae709c076aae11ca50b18 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 26 Feb 2023 18:22:08 +0300 Subject: chore(tvix/eval): fix clippy warnings Change-Id: I4c02f0104c455ac00a3f299c1fbf75cbb08e8972 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8142 Reviewed-by: flokli Tested-by: BuildkiteCI Autosubmit: tazjin --- tvix/eval/src/compiler/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tvix/eval/src/compiler/mod.rs') 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.`, but directly as ``. 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) })); -- cgit 1.4.1