From 9c68914a64a466033a986580ba2d5e59cd35ca0b Mon Sep 17 00:00:00 2001 From: Igor Khasilev Date: Sat, 2 May 2020 22:42:59 +0300 Subject: [PATCH] fix safety annotations --- source/nbuff/buffer.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/nbuff/buffer.d b/source/nbuff/buffer.d index e1ad3ce..bae952f 100644 --- a/source/nbuff/buffer.d +++ b/source/nbuff/buffer.d @@ -502,7 +502,7 @@ struct MutableMemoryChunk { return _size; } - auto data() pure inout @safe @nogc nothrow + auto data() pure inout @system @nogc nothrow { return _data; } @@ -681,7 +681,7 @@ struct NbuffChunk { return _end - _beg; } - public auto data() @system @nogc + public auto data() @safe @nogc { return _memory._impl._object[_beg.._end]; }