]> git.proxmox.com Git - perlmod.git/commitdiff
macro: move 'boot' call into the 'Once' section
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 26 Jul 2023 07:56:15 +0000 (09:56 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 26 Jul 2023 07:58:01 +0000 (09:58 +0200)
This also means boot function call chains must not cause circular
dependencies at all without a way to mitigate this in code. If this
should ever be a problem, we can move it out again, but this should
rather not be necessary.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
perlmod-macro/src/package.rs

index ac62fda92894b7f67508fb7a09bc5a0d680a4764..96d01c9f5087431951b197135a7be9e6c466805a 100644 (file)
@@ -127,9 +127,9 @@ impl Package {
 
                         #newxs
                     }
-                });
 
-                #boot
+                    #boot
+                });
             }
         }
     }