Merge pull request #117 from Herringway/safe-flags

mark dyaml.flags.Flags.flags as @safe
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
The Dlang Bot 2018-04-22 21:36:56 +02:00 committed by GitHub
commit 3aa7ce6d0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");