From a08d3f6af41d13c0b5a25ef8039f9e807def1286 Mon Sep 17 00:00:00 2001 From: Sven Thiele Date: Mon, 12 Feb 2024 10:29:33 +0100 Subject: [PATCH] Clippy --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index cc7c351..5ee30fe 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1124,7 +1124,7 @@ fn write_output_var(mut buf: impl Write, id: &str, annos: &[Annotation]) -> Resu fn write_output_array(mut buf: impl Write, id: &str, annos: &[Annotation]) -> Result<()> { for a in annos { if a.id == "output_array" { - match a.expressions.get(0) { + match a.expressions.first() { Some(AnnExpr::Expr(Expr::ArrayOfSet(v))) => { for (pos, e) in v.iter().enumerate() { match e {