Fix builds.
This commit is contained in:
parent
135b1f54c2
commit
a6ddb64596
@ -79,7 +79,7 @@ impl Engine {
|
||||
name,
|
||||
FnNamespace::Global,
|
||||
FnAccess::Public,
|
||||
param_type_names.as_ref().map(|v| v.as_ref()),
|
||||
param_type_names.as_ref().map(<_>::as_ref),
|
||||
¶m_types,
|
||||
func.into_callable_function(),
|
||||
);
|
||||
@ -137,7 +137,7 @@ impl Engine {
|
||||
name,
|
||||
FnNamespace::Global,
|
||||
FnAccess::Public,
|
||||
param_type_names.as_ref().map(|v| v.as_ref()),
|
||||
param_type_names.as_ref().map(<_>::as_ref),
|
||||
¶m_types,
|
||||
func.into_callable_function(),
|
||||
);
|
||||
|
@ -156,7 +156,7 @@ impl<'a> NativeCallContext<'a> {
|
||||
Self {
|
||||
engine,
|
||||
fn_name: fn_name.as_ref(),
|
||||
source: source.map(S::as_ref),
|
||||
source: source.map(<_>::as_ref),
|
||||
global: Some(global),
|
||||
lib,
|
||||
pos,
|
||||
|
@ -77,7 +77,7 @@ impl ModuleResolversCollection {
|
||||
/// Get an iterator of all the [module resolvers][ModuleResolver].
|
||||
#[inline]
|
||||
pub fn iter(&self) -> impl Iterator<Item = &dyn ModuleResolver> {
|
||||
self.0.iter().map(|v| v.as_ref())
|
||||
self.0.iter().map(<_>::as_ref)
|
||||
}
|
||||
/// Remove all [module resolvers][ModuleResolver].
|
||||
#[inline(always)]
|
||||
|
@ -225,7 +225,7 @@ impl FileModuleResolver {
|
||||
path: impl AsRef<str>,
|
||||
source_path: Option<impl AsRef<str>>,
|
||||
) -> Option<Shared<Module>> {
|
||||
let file_path = self.get_file_path(path.as_ref(), source_path.as_ref().map(|v| v.as_ref()));
|
||||
let file_path = self.get_file_path(path.as_ref(), source_path.as_ref().map(<_>::as_ref));
|
||||
|
||||
shared_write_lock(&self.cache)
|
||||
.remove_entry(&file_path)
|
||||
|
@ -2623,7 +2623,7 @@ fn parse_export(
|
||||
pos: id_pos,
|
||||
},
|
||||
Ident {
|
||||
name: state.get_identifier("", rename.as_ref().map_or("", |s| s.as_ref())),
|
||||
name: state.get_identifier("", rename.as_ref().map_or("", <_>::as_ref)),
|
||||
pos: rename_pos,
|
||||
},
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user