Fix test.

This commit is contained in:
Stephen Chung 2021-04-17 18:59:20 +08:00
parent eefdc09352
commit 90198d5440

View File

@ -310,17 +310,6 @@ impl Module {
} }
/// Is the [`Module`] internal? /// Is the [`Module`] internal?
///
/// # Example
///
/// ```
/// use rhai::Module;
///
/// let mut module = Module::new();
/// assert!(!module.is_internal());
/// module.set_internal(true);
/// assert!(module.is_internal());
/// ```
#[allow(dead_code)] #[allow(dead_code)]
#[inline(always)] #[inline(always)]
pub(crate) fn is_internal(&self) -> bool { pub(crate) fn is_internal(&self) -> bool {
@ -328,17 +317,6 @@ impl Module {
} }
/// Set the interal status of the [`Module`]. /// Set the interal status of the [`Module`].
///
/// # Example
///
/// ```
/// use rhai::Module;
///
/// let mut module = Module::new();
/// assert!(!module.is_internal());
/// module.set_internal(true);
/// assert!(module.is_internal());
/// ```
#[inline(always)] #[inline(always)]
pub(crate) fn set_internal(&mut self, value: bool) -> &mut Self { pub(crate) fn set_internal(&mut self, value: bool) -> &mut Self {
self.internal = value; self.internal = value;