From 8cd7dcd77dc439e54d53b062dd73f0a0b046db61 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 29 Sep 2023 12:32:06 +0200 Subject: [PATCH] fix warnings --- members/pt-ccc/src/term.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/members/pt-ccc/src/term.rs b/members/pt-ccc/src/term.rs index c438444..749934c 100644 --- a/members/pt-ccc/src/term.rs +++ b/members/pt-ccc/src/term.rs @@ -95,9 +95,9 @@ impl Term { self.text = Self::filter(&self.original)?; // Storage for unfinished tokens - let mut unfinished_chars: Vec = Vec::new(); + let _unfinished_chars: Vec = Vec::new(); - for (index, c) in self.original.chars().enumerate() { + for (_index, c) in self.original.chars().enumerate() { // this will be a mess, but it has to be before i can sort the mess. match c { // TODO: make function to check if character is an operator, use it @@ -124,7 +124,7 @@ impl Term { /// /// Returns: A tuple with a [`Token`] and a [`bool`]. If the bool is false, the [`Token`] is /// marked as "incomplete", meaning that the character cannot be used yet. - fn to_tok(s: Vec) -> Result { + fn to_tok(_s: Vec) -> Result { Ok(19.into()) }