From cbeb0395f92d64ffdd73e1896cbfa25588f868dd Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 30 Nov 2016 16:21:20 +0100 Subject: Remove @safe from potentially unsafe code --- source/tanya/async/watcher.d | 2 +- source/tanya/memory/mmappool.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/tanya/async/watcher.d b/source/tanya/async/watcher.d index 08fe6df..260c6a3 100644 --- a/source/tanya/async/watcher.d +++ b/source/tanya/async/watcher.d @@ -174,7 +174,7 @@ class IOWatcher : ConnectionWatcher * * Returns: $(D_KEYWORD this). */ - IOWatcher opCall(StreamTransport transport, Protocol protocol) pure nothrow @safe @nogc + IOWatcher opCall(StreamTransport transport, Protocol protocol) pure nothrow @nogc in { assert(transport !is null); diff --git a/source/tanya/memory/mmappool.d b/source/tanya/memory/mmappool.d index 2917afe..ed761ad 100644 --- a/source/tanya/memory/mmappool.d +++ b/source/tanya/memory/mmappool.d @@ -268,7 +268,7 @@ class MmapPool : Allocator } /// - @nogc @safe nothrow unittest + @nogc nothrow unittest { void[] p; MmapPool.instance.reallocate(p, 10 * int.sizeof); -- cgit v1.2.3