diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2024-03-12 22:39:09 -0400 | 
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2024-03-12 22:56:34 -0400 | 
| commit | e9e17be24eba558c30fcdc41ea5bb9a1da7fd4e7 (patch) | |
| tree | 1ed3c4b528b0a8e54d0eb9babc391e562578c7b4 /org/default_shared_snippets.org | |
| parent | nix flake & env upkeep (diff) | |
mark modules as @safe: (& identify what is not)
Diffstat (limited to 'org/default_shared_snippets.org')
| -rw-r--r-- | org/default_shared_snippets.org | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/org/default_shared_snippets.org b/org/default_shared_snippets.org index ed262e4..66041f3 100644 --- a/org/default_shared_snippets.org +++ b/org/default_shared_snippets.org @@ -25,6 +25,7 @@  #+BEGIN_SRC d  <<doc_header_including_copyright_and_license>>  module doc_reform.io_out.html_snippet; +@safe:  template htmlSnippet() {    import      std.file, @@ -60,7 +61,7 @@ template htmlSnippet() {      );      return html_blank_default;    } -  @safe string special_characters_text(string _txt) { +  string special_characters_text(string _txt) {      mixin spineRgxOut;      mixin spineRgxXHTML;      static auto rgx = RgxO(); @@ -90,6 +91,7 @@ template htmlSnippet() {    shared default settings  +/  module doc_reform.share.defaults; +@safe:  <<shared_messages>>  #+END_SRC @@ -99,7 +101,7 @@ module doc_reform.share.defaults;  #+BEGIN_SRC d  template Msg() {    import std.stdio; -  @safe auto Msg(I)(I doc_matters) { +  auto Msg(I)(I doc_matters) {      struct Msg_ {        void v()(string message) {          if (doc_matters.opt.action.vox_gt1) {  | 
