Add @safe attribute to main.extractOpt()

This commit is contained in:
Jeremy Baxter 2023-05-11 18:08:40 +12:00
parent 6a6f39e0bd
commit 56d69af099

2
main.d
View file

@ -265,7 +265,7 @@ key = " ~ DEFAULT_APIKEY ~ "
return 0;
}
string extractOpt(GetOptException e)
string extractOpt(GetOptException e) @safe
{
return e.msg.matchFirst("-.")[0];
}