Skip to content

Commit

Permalink
Make onAccessEmptyValue @safe
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaloupka committed Feb 3, 2024
1 parent 1fdc147 commit 4ad4d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/expected.d
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ static:
immutable bool enableDefaultConstructor = false;

/// Handler for case when empty value is accessed.
void onAccessEmptyValue(E)(E err) nothrow @nogc
void onAccessEmptyValue(E)(E err) nothrow @nogc @safe
{
assert(0, "Value not set");
}
Expand Down

0 comments on commit 4ad4d75

Please sign in to comment.