mark dyaml.flags.Flags.flags as @safe
This commit is contained in:
parent
f528351867
commit
accad93f7f
|
@ -27,7 +27,7 @@ struct Flags(names ...) if(names.length <= 8)
|
||||||
ubyte flags_;
|
ubyte flags_;
|
||||||
|
|
||||||
///Generate a setter and a getter for each flag.
|
///Generate a setter and a getter for each flag.
|
||||||
static string flags(string[] names ...) @trusted
|
static string flags(string[] names ...) @safe
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
assert(names.length <= 8, "Flags struct can only hold 8 flags");
|
assert(names.length <= 8, "Flags struct can only hold 8 flags");
|
||||||
|
|
Loading…
Reference in a new issue