Fix strange new compile errors
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -51,11 +51,14 @@ macro_rules! script_function_cache {
|
||||
{
|
||||
let read_lock = self.$name.read();
|
||||
if let Some(f) = read_lock.as_ref() {
|
||||
return Some(f.clone());
|
||||
return Some(TypedFunction::clone(f));
|
||||
}
|
||||
}
|
||||
self.[<initialize_ $name>](env);
|
||||
self.$name.read().as_ref().cloned()
|
||||
match self.$name.read().as_ref() {
|
||||
Some(f) => Some(TypedFunction::clone(f)),
|
||||
None => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
)*
|
||||
|
||||
Reference in New Issue
Block a user