From d2b158f60f62430685338864a5e4294318211237 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Sat, 19 Oct 2024 21:56:38 -0500 Subject: [PATCH] sqf: optimizer tiny cleanup --- libs/sqf/src/compiler/optimizer/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/sqf/src/compiler/optimizer/mod.rs b/libs/sqf/src/compiler/optimizer/mod.rs index 9bd3bfbf..77c4eb12 100644 --- a/libs/sqf/src/compiler/optimizer/mod.rs +++ b/libs/sqf/src/compiler/optimizer/mod.rs @@ -1,9 +1,9 @@ //! Optimizes sqf by evaulating expressions when possible and looking for arrays that can be consumed //! `ToDo`: what commands consume arrays -//! `ToDo`: reduce logging when stable //! use crate::{BinaryCommand, Expression, Statement, Statements, UnaryCommand}; use std::ops::Range; +#[allow(unused_imports)] use tracing::{trace, warn}; impl Statements { @@ -257,6 +257,7 @@ impl Expression { /// Trys to get a consumable array from an existing array if it can be made a constant #[must_use] + #[allow(unused_variables)] fn get_consumable_array(&self, direct: bool, op: &String) -> Option { if let Self::Array(array, range) = &self { if !self.is_constant() {