From e9e17be24eba558c30fcdc41ea5bb9a1da7fd4e7 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 12 Mar 2024 22:39:09 -0400 Subject: mark modules as @safe: (& identify what is not) --- org/default_shared_snippets.org | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'org/default_shared_snippets.org') 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 <> 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: <> #+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) { -- cgit v1.2.3