Clean up more clippy.
This commit is contained in:
@@ -284,26 +284,26 @@ impl GlobalRuntimeState<'_> {
|
||||
#[cfg(any(not(feature = "no_index"), not(feature = "no_object")))]
|
||||
#[must_use]
|
||||
pub(crate) fn hash_idx_get(&mut self) -> u64 {
|
||||
if self.fn_hash_indexing != (0, 0) {
|
||||
self.fn_hash_indexing.0
|
||||
} else {
|
||||
if self.fn_hash_indexing == (0, 0) {
|
||||
let n1 = crate::calc_fn_hash(crate::engine::FN_IDX_GET, 2);
|
||||
let n2 = crate::calc_fn_hash(crate::engine::FN_IDX_SET, 3);
|
||||
self.fn_hash_indexing = (n1, n2);
|
||||
n1
|
||||
} else {
|
||||
self.fn_hash_indexing.0
|
||||
}
|
||||
}
|
||||
/// Get the pre-calculated index setter hash.
|
||||
#[cfg(any(not(feature = "no_index"), not(feature = "no_object")))]
|
||||
#[must_use]
|
||||
pub(crate) fn hash_idx_set(&mut self) -> u64 {
|
||||
if self.fn_hash_indexing != (0, 0) {
|
||||
self.fn_hash_indexing.1
|
||||
} else {
|
||||
if self.fn_hash_indexing == (0, 0) {
|
||||
let n1 = crate::calc_fn_hash(crate::engine::FN_IDX_GET, 2);
|
||||
let n2 = crate::calc_fn_hash(crate::engine::FN_IDX_SET, 3);
|
||||
self.fn_hash_indexing = (n1, n2);
|
||||
n2
|
||||
} else {
|
||||
self.fn_hash_indexing.1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user