From a75aba8a850326f1b07793cf086d824dc48a1969 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Fri, 11 Sep 2020 22:24:44 +0800 Subject: [PATCH] Rename calc_fn_spec to calc_fn_hash. --- src/lib.rs | 2 +- src/utils.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4939e119..c0d00fab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -93,7 +93,7 @@ pub use result::EvalAltResult; pub use scope::Scope; pub use syntax::{EvalContext, Expression}; pub use token::Position; -pub use utils::calc_fn_spec as calc_fn_hash; +pub use utils::calc_fn_hash; pub use rhai_codegen::*; diff --git a/src/utils.rs b/src/utils.rs index ee448260..2587262b 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -69,7 +69,7 @@ impl BuildHasher for StraightHasherBuilder { /// # Note /// /// The first module name is skipped. Hashing starts from the _second_ module in the chain. -pub fn calc_fn_spec<'a>( +pub fn calc_fn_hash<'a>( modules: impl Iterator, fn_name: &str, num: usize,