Fix feature builds.

This commit is contained in:
Stephen Chung
2022-08-22 22:28:27 +08:00
parent a9413dc570
commit 010a96dde3
4 changed files with 29 additions and 9 deletions

View File

@@ -1,7 +1,6 @@
//! Module defining external-loaded modules for Rhai.
use crate::ast::FnAccess;
use crate::func::register::Mut;
use crate::func::{
shared_take_or_clone, CallableFunction, FnCallArgs, IteratorFn, RegisterNativeFunction,
SendSync,
@@ -21,6 +20,9 @@ use std::{
ops::{Add, AddAssign},
};
#[cfg(any(not(feature = "no_index"), not(feature = "no_object")))]
use crate::func::register::Mut;
/// A type representing the namespace of a function.
#[derive(Debug, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[cfg_attr(feature = "metadata", derive(serde::Serialize))]