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

Commit 7d2cbb5

Browse files
authored
Merge pull request #2076 from wilzbach/deprecate-rwm-shared2
Fix deprecated rwm operation in core.sync.mutex merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2 parents 5bff33d + 2abd782 commit 7d2cbb5

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)