File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ struct ScopedBuffer(T, size_t bytes = 4096)
29
29
else
30
30
private align (T.alignof) ubyte [_bufferLength * T.sizeof] _scopeBufferPayload = void ;
31
31
32
- private ref inout (T[_bufferLength]) _scopeBuffer () inout @trusted scope
32
+ private ref inout (T[_bufferLength]) _scopeBuffer () inout @trusted return scope
33
33
{
34
34
return * cast (inout (T[_bufferLength])* )&_scopeBufferPayload;
35
35
}
36
36
37
- private T[] prepare (size_t n) @trusted scope
37
+ private T[] prepare (size_t n) @trusted return scope
38
38
{
39
39
import mir.internal.memory: realloc, malloc;
40
40
_currentLength += n;
@@ -210,7 +210,7 @@ struct ScopedBuffer(T, size_t bytes = 4096)
210
210
}
211
211
212
212
// /
213
- inout (T)[] data () inout @property @safe scope
213
+ inout (T)[] data () inout @property @safe return scope
214
214
{
215
215
return _buffer.length ? _buffer[0 .. _currentLength] : _scopeBuffer[0 .. _currentLength];
216
216
}
You can’t perform that action at this time.
0 commit comments