Fix builds.

This commit is contained in:
Stephen Chung 2022-11-08 16:37:35 +08:00
parent 8f128f37f0
commit 5bae4d8a19
2 changed files with 2 additions and 2 deletions

View File

@ -662,7 +662,7 @@ impl Engine {
/// let mut module = Module::new();
/// module.set_native_fn("calc", |x: i64| Ok(x + 1));
///
/// let module: SharedModule = module.into();
/// let module: Shared<Module> = module.into();
///
/// engine
/// // Register the module as a fixed sub-module

View File

@ -267,7 +267,7 @@ impl AST {
#[cfg(not(feature = "no_function"))]
#[inline(always)]
#[must_use]
pub(crate) const fn shared_lib(&self) -> &SharedModule {
pub(crate) const fn shared_lib(&self) -> &crate::SharedModule {
&self.lib
}
/// _(internals)_ Get the internal shared [`Module`][crate::Module] containing all script-defined functions.