Fix builds.

This commit is contained in:
Stephen Chung
2021-06-28 18:29:53 +08:00
parent e40e81ac1a
commit a13a724361
3 changed files with 8 additions and 4 deletions

View File

@@ -109,14 +109,14 @@ impl<'a> NativeCallContext<'a> {
pub const fn new_with_all_fields(
engine: &'a Engine,
fn_name: &'a str,
source: &'a Option<&str>,
source: Option<&'a str>,
imports: &'a Imports,
lib: &'a [&Module],
) -> Self {
Self {
engine,
fn_name,
source: source.clone(),
source,
mods: Some(imports),
lib,
}