about summary refs log tree commit diff
path: root/tvix/eval/src/builtins/to_xml.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-02-26T15·22+0300
committerclbot <clbot@tvl.fyi>2023-03-03T11·01+0000
commit344c1193700370f4762ae709c076aae11ca50b18 (patch)
tree932bba9a369c7e2feb82aef4671fa6b2fae04267 /tvix/eval/src/builtins/to_xml.rs
parent7e9a65dcdb38c247f742a181a94a452df6802fbb (diff)
chore(tvix/eval): fix clippy warnings r/5870
Change-Id: I4c02f0104c455ac00a3f299c1fbf75cbb08e8972
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8142
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/eval/src/builtins/to_xml.rs')
-rw-r--r--tvix/eval/src/builtins/to_xml.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/eval/src/builtins/to_xml.rs b/tvix/eval/src/builtins/to_xml.rs
index 4176c8146e34..750bb27aa226 100644
--- a/tvix/eval/src/builtins/to_xml.rs
+++ b/tvix/eval/src/builtins/to_xml.rs
@@ -67,7 +67,7 @@ fn value_variant_to_xml<W: Write>(w: &mut EventWriter<W>, value: &Value) -> Resu
             w.write(XmlEvent::start_element("list"))?;
 
             for elem in list.into_iter() {
-                value_variant_to_xml(w, &elem)?;
+                value_variant_to_xml(w, elem)?;
             }
 
             w.write(XmlEvent::end_element())
@@ -78,7 +78,7 @@ fn value_variant_to_xml<W: Write>(w: &mut EventWriter<W>, value: &Value) -> Resu
 
             for elem in attrs.iter() {
                 w.write(XmlEvent::start_element("attr").attr("name", elem.0.as_str()))?;
-                value_variant_to_xml(w, &elem.1)?;
+                value_variant_to_xml(w, elem.1)?;
                 w.write(XmlEvent::end_element())?;
             }