diff --git a/perlmod/src/macros.rs b/perlmod/src/macros.rs index 9e13a7f..25811c1 100644 --- a/perlmod/src/macros.rs +++ b/perlmod/src/macros.rs @@ -221,7 +221,7 @@ macro_rules! instantiate_magic { let value = $crate::Value::new_hash(); let this = $crate::Value::new_ref(&value); this.bless_sv($class)?; - value.add_magic(MAGIC.with_value($value)); + value.add_magic($magic.with_value($value)); this }}; }