From f8919dbcd6137f1d4656827e1b3cefe58cee119b Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 31 Aug 2022 04:56:02 +0300 Subject: fix(tvix/eval): address current clippy lints Note that I've allowed `needless_lifetimes` for the attribute set iterator, as I find the type easier to understand with these annotations present. Change-Id: I33abb17837ee4813076cdb9a87f54bac4a37044e Reviewed-on: https://cl.tvl.fyi/c/depot/+/6373 Reviewed-by: sterni Tested-by: BuildkiteCI --- tvix/eval/src/value/attrs.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'tvix/eval/src/value') diff --git a/tvix/eval/src/value/attrs.rs b/tvix/eval/src/value/attrs.rs index d05cc177d492..2954f8522097 100644 --- a/tvix/eval/src/value/attrs.rs +++ b/tvix/eval/src/value/attrs.rs @@ -215,6 +215,7 @@ impl NixAttrs { self.0.contains(key) } + #[allow(clippy::needless_lifetimes)] pub fn iter<'a>(&'a self) -> Iter> { Iter(match &self.0 { AttrsRep::Map(map) => KeyValue::Map(map.iter()), -- cgit 1.4.1