Fix builds.
This commit is contained in:
parent
e40e81ac1a
commit
a13a724361
@ -1889,7 +1889,7 @@ impl From<Decimal> for Dynamic {
|
|||||||
fn from(value: Decimal) -> Self {
|
fn from(value: Decimal) -> Self {
|
||||||
Self(Union::Decimal(
|
Self(Union::Decimal(
|
||||||
Box::new(value.into()),
|
Box::new(value.into()),
|
||||||
DEFAULT_TAG,
|
DEFAULT_TAG_VALUE,
|
||||||
ReadWrite,
|
ReadWrite,
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
@ -109,14 +109,14 @@ impl<'a> NativeCallContext<'a> {
|
|||||||
pub const fn new_with_all_fields(
|
pub const fn new_with_all_fields(
|
||||||
engine: &'a Engine,
|
engine: &'a Engine,
|
||||||
fn_name: &'a str,
|
fn_name: &'a str,
|
||||||
source: &'a Option<&str>,
|
source: Option<&'a str>,
|
||||||
imports: &'a Imports,
|
imports: &'a Imports,
|
||||||
lib: &'a [&Module],
|
lib: &'a [&Module],
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self {
|
Self {
|
||||||
engine,
|
engine,
|
||||||
fn_name,
|
fn_name,
|
||||||
source: source.clone(),
|
source,
|
||||||
mods: Some(imports),
|
mods: Some(imports),
|
||||||
lib,
|
lib,
|
||||||
}
|
}
|
||||||
|
@ -146,7 +146,11 @@ impl From<&crate::module::FuncInfo> for FnMetadata {
|
|||||||
}
|
}
|
||||||
#[cfg(not(feature = "no_function"))]
|
#[cfg(not(feature = "no_function"))]
|
||||||
{
|
{
|
||||||
info.func.get_fn_def().comments.to_vec()
|
info.func
|
||||||
|
.get_script_fn_def()
|
||||||
|
.expect("never fails because the function is scripted")
|
||||||
|
.comments
|
||||||
|
.to_vec()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Default::default()
|
Default::default()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user