diff --git a/src/func/call.rs b/src/func/call.rs index 5afb6e7a..dac38df3 100644 --- a/src/func/call.rs +++ b/src/func/call.rs @@ -1,9 +1,6 @@ //! Implement function-calling mechanism for [`Engine`]. -use super::{ - calc_typed_method_hash, get_builtin_binary_op_fn, get_builtin_op_assignment_fn, - CallableFunction, -}; +use super::{get_builtin_binary_op_fn, get_builtin_op_assignment_fn, CallableFunction}; use crate::api::default_limits::MAX_DYNAMIC_PARAMETERS; use crate::ast::{Expr, FnCallExpr, FnCallHashes}; use crate::engine::{ @@ -1204,7 +1201,7 @@ impl Engine { return Ok(if num_params >= 0 { #[allow(clippy::cast_sign_loss, clippy::cast_possible_truncation)] - let hash_script = calc_typed_method_hash( + let hash_script = crate::calc_typed_method_hash( calc_fn_hash(None, &fn_name, num_params as usize), &this_type, ); diff --git a/src/tokenizer.rs b/src/tokenizer.rs index da4676fb..2e0e009c 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -2364,7 +2364,7 @@ pub fn is_reserved_keyword_or_symbol(syntax: &str) -> (bool, bool, bool) { match len { 1 => (), - _ => hash_val += RESERVED_ASSOC_VALUES[(utf8[1] as usize)] as usize, + _ => hash_val += RESERVED_ASSOC_VALUES[utf8[1] as usize] as usize, } hash_val += RESERVED_ASSOC_VALUES[utf8[0] as usize] as usize; hash_val += RESERVED_ASSOC_VALUES[utf8[len - 1] as usize] as usize;