perlmod: actually use provided magic var

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-12-14 13:22:56 +01:00
parent 8c587b3bf3
commit 7922272173

View File

@ -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
}};
}