about summary refs log tree commit diff
path: root/tvix/serde/src/de.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-08-19T14·38+0200
committerclbot <clbot@tvl.fyi>2023-08-20T21·43+0000
commit600d4eec775c0b3df3365ea0ffdcfe449527e630 (patch)
tree2cf6c1b4818cf5cf59f020461d4c35976a30b94a /tvix/serde/src/de.rs
parent9cb38c5ba5e51e8843ee2ab210842701c5a6d7ce (diff)
refactor(tvix/serde): cargo clippy r/6497
Change-Id: I3c86225040a04c9cb5702b226b4a5008ae219c42
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9093
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/serde/src/de.rs')
-rw-r--r--tvix/serde/src/de.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tvix/serde/src/de.rs b/tvix/serde/src/de.rs
index fddda65907a4..59a72b7417f9 100644
--- a/tvix/serde/src/de.rs
+++ b/tvix/serde/src/de.rs
@@ -304,8 +304,7 @@ impl<'de> de::Deserializer<'de> for NixDeserializer {
         V: de::Visitor<'de>,
     {
         if let Value::List(list) = self.value {
-            let mut seq =
-                SeqDeserializer::new(list.into_iter().map(|value| NixDeserializer::new(value)));
+            let mut seq = SeqDeserializer::new(list.into_iter().map(NixDeserializer::new));
             let result = visitor.visit_seq(&mut seq)?;
             seq.end()?;
             return Ok(result);