Skip to content

Commit 7c43190

Browse files
committed
feat: Add @nogc attribute to lessThanGeneric function for improved memory safety
1 parent 3f6e9c3 commit 7c43190

File tree

1 file changed

+1
-1
lines changed
  • source/fluentasserts/operations/comparison

1 file changed

+1
-1
lines changed

source/fluentasserts/operations/comparison/lessThan.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void lessThanSysTime(ref Evaluation evaluation) @safe nothrow {
8383
}
8484

8585
/// Generic lessThan using proxy values - works for any comparable type
86-
void lessThanGeneric(ref Evaluation evaluation) @safe nothrow {
86+
void lessThanGeneric(ref Evaluation evaluation) @safe nothrow @nogc {
8787
evaluation.result.addText(".");
8888

8989
bool result = false;

0 commit comments

Comments
 (0)