Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 2abd782

Browse files
committed
Fix deprecated rwm operation in core.sync.mutex
1 parent 97d25f2 commit 2abd782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/sync/mutex.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ unittest
318318
void useResource() shared @safe nothrow @nogc
319319
{
320320
mtx.lock_nothrow();
321-
*(cast()&cargo) += 1;
321+
(cast() cargo) += 1;
322322
mtx.unlock_nothrow();
323323
}
324324
}

0 commit comments

Comments
 (0)