From 2fe193ce41e0fe44336603078103ab4a524e1a09 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 12 Sep 2022 00:08:45 +0300 Subject: chore(tvix/eval): address current clippy lints Change-Id: I76326c20a525044e89d3cd1392a29faa3414ca04 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6529 Reviewed-by: sterni Tested-by: BuildkiteCI --- tvix/eval/src/compiler/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tvix/eval/src/compiler') diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs index 627994eaf44b..7868bced4653 100644 --- a/tvix/eval/src/compiler/mod.rs +++ b/tvix/eval/src/compiler/mod.rs @@ -716,7 +716,6 @@ impl Compiler<'_, '_> { // Otherwise, this variable is missing. self.emit_error(self.span_for(&node), ErrorKind::UnknownStaticVariable); - return; } LocalPosition::Known(idx) => { @@ -1245,7 +1244,7 @@ impl Compiler<'_, '_> { fn expr_static_attr_str(&self, node: &ast::Attr) -> Option { match node { ast::Attr::Ident(ident) => Some(ident.ident_token().unwrap().text().into()), - ast::Attr::Str(s) => self.expr_static_str(&s), + ast::Attr::Str(s) => self.expr_static_str(s), // The dynamic node type is just a wrapper. C++ Nix does not // care about the dynamic wrapper when determining whether the -- cgit 1.4.1