forked from M-Labs/nac3
Compare commits
2 Commits
c94f407732
...
613159da39
Author | SHA1 | Date | |
---|---|---|---|
613159da39 | |||
2d1cd95c2c |
@ -621,7 +621,7 @@ impl Nac3 {
|
||||
let mut def = defs[id.0].write();
|
||||
match &mut *def {
|
||||
TopLevelDef::Function { codegen_callback, .. } => {
|
||||
*codegen_callback = Some(rpc_codegen_callback(*is_async));
|
||||
*codegen_callback = Some(rpc_codegen_callback(*is_async).clone());
|
||||
}
|
||||
TopLevelDef::Class { methods, .. } => {
|
||||
let (class_def, method_name) = class_data.as_ref().unwrap();
|
||||
@ -632,7 +632,7 @@ impl Nac3 {
|
||||
if let TopLevelDef::Function { codegen_callback, .. } =
|
||||
&mut *defs[id.0].write()
|
||||
{
|
||||
*codegen_callback = Some(rpc_codegen_callback(*is_async));
|
||||
*codegen_callback = Some(rpc_codegen_callback(*is_async).clone());
|
||||
store_fun
|
||||
.call1(
|
||||
py,
|
||||
|
Loading…
Reference in New Issue
Block a user