Skip to content

Commit

Permalink
Add unit declarator to module declarations
Browse files Browse the repository at this point in the history
As of Rakudo 2015.05, the `unit` declarator is required before using
`module`, `class` or `grammar` declarations (unless it uses a block).  Code
still using the old blockless semicolon form will throw a warning. This
commit stops the warning from appearing in the new Rakudo.
  • Loading branch information
Paul Cochrane committed Jun 1, 2015
1 parent f2aa055 commit a23868f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/XML/Signature.pm6
Expand Up @@ -6,7 +6,7 @@ use Digest::SHA;
use MIME::Base64;
use UUID;

module XML::Signature;
unit module XML::Signature;

our sub sign(XML::Element $document is rw, :$private-pem!, :$x509-pem! is copy, :$enveloping, :$enveloped, :$detached) is export {
$x509-pem ~~ s:g/\s+//;
Expand Down

0 comments on commit a23868f

Please sign in to comment.