diff options
author | Vincent Ambo <mail@tazj.in> | 2022-09-11T21·08+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-11T21·13+0000 |
commit | 2fe193ce41e0fe44336603078103ab4a524e1a09 (patch) | |
tree | cf8c62ac5869012dd60651da3df08bcdf5f33bf2 /tvix/eval/src/compiler/mod.rs | |
parent | 1844c788f557ff0f80943c127b727498676f04e4 (diff) |
chore(tvix/eval): address current clippy lints r/4824
Change-Id: I76326c20a525044e89d3cd1392a29faa3414ca04 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6529 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/compiler/mod.rs')
-rw-r--r-- | tvix/eval/src/compiler/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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<String> { 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 |