From c2cfd3f72cde0ad54e5cb8337f1de4a10e6df36d Mon Sep 17 00:00:00 2001 From: ef3d0c3e Date: Fri, 26 Jul 2024 11:24:25 +0200 Subject: [PATCH] Oops --- src/compiler/compiler.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler/compiler.rs b/src/compiler/compiler.rs index bfb24d2..7d8f3f8 100644 --- a/src/compiler/compiler.rs +++ b/src/compiler/compiler.rs @@ -7,7 +7,6 @@ use rusqlite::Connection; use crate::document::document::Document; use crate::document::document::ElemReference; -use crate::document::element::ReferenceableElement; use crate::document::variable::Variable; #[derive(Clone, Copy)] @@ -62,7 +61,7 @@ impl Compiler { // Insert new ref let index = map .iter() - .fold(0, |max, (name, value)| std::cmp::max(max, *value)); + .fold(0, |max, (_, value)| std::cmp::max(max, *value)); map.insert(refname.clone(), index + 1); index + 1 }