From dfbdfba23d18050f26afe94ee04680b0dd6e5fb8 Mon Sep 17 00:00:00 2001 From: "Brandon T. Willard" Date: Thu, 29 Aug 2024 12:37:15 -0500 Subject: [PATCH] Remove unnecessary linter allowances --- src/python_bindings/mod.rs | 1 - src/regex.rs | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/python_bindings/mod.rs b/src/python_bindings/mod.rs index 6aeec3bf..22bebe62 100644 --- a/src/python_bindings/mod.rs +++ b/src/python_bindings/mod.rs @@ -138,7 +138,6 @@ pub fn get_vocabulary_transition_keys_py( )) } -#[allow(clippy::too_many_arguments)] #[pyfunction(name = "create_fsm_index_end_to_end")] #[pyo3(text_signature = "(fsm_info, vocabulary, frozen_tokens)")] pub fn create_fsm_index_end_to_end_py<'py>( diff --git a/src/regex.rs b/src/regex.rs index e9cb68d2..1db920ac 100644 --- a/src/regex.rs +++ b/src/regex.rs @@ -1,6 +1,5 @@ use std::collections::{HashMap, HashSet}; -#[allow(dead_code)] pub fn walk_fsm( fsm_transitions: &HashMap<(u32, u32), u32>, _fsm_initial: u32, @@ -38,7 +37,6 @@ pub fn walk_fsm( accepted_states } -#[allow(dead_code)] pub fn state_scan_tokens( fsm_transitions: &HashMap<(u32, u32), u32>, fsm_initial: u32, @@ -75,7 +73,6 @@ pub fn state_scan_tokens( res } -#[allow(dead_code)] pub fn get_token_transition_keys( alphabet_symbol_mapping: &HashMap, alphabet_anything_value: u32, @@ -109,7 +106,6 @@ pub fn get_token_transition_keys( token_transition_keys } -#[allow(dead_code)] pub fn get_vocabulary_transition_keys( alphabet_symbol_mapping: &HashMap, alphabet_anything_value: u32,