Skip to content

Commit 8069c59

Browse files
committed
ditto
1 parent 91e7ed3 commit 8069c59

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

source/mir/algorithm/iteration.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ private void checkShapesMatch(
576576
string fun = __FUNCTION__,
577577
string pfun = __PRETTY_FUNCTION__,
578578
Slices...)
579-
(scope ref const Slices slices)
579+
(Slices slices)
580580
if (Slices.length > 1)
581581
{
582582
enum msgShape = "all slices must have the same shape" ~ tailErrorMessage!(fun, pfun);

source/mir/appender.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ struct ScopedBuffer(T, size_t bytes = 4096)
214214
}
215215

216216
///
217-
inout(T)[] data() inout @property @safe scope return
217+
inout(T)[] data() inout @property @trusted scope return
218218
{
219219
return _buffer.length ? _buffer[0 .. _currentLength] : _scopeBuffer[0 .. _currentLength];
220220
}

source/mir/ndslice/slice.d

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -472,19 +472,18 @@ package(mir) template allLightScope(args...)
472472
{
473473
static if (args.length)
474474
{
475-
alias arg = args[0];
476-
alias Arg = typeof(arg);
475+
alias Arg = typeof(args[0]);
477476
static if(!isDynamicArray!Arg)
478477
{
479478
static if(!is(LightScopeOf!Arg == Arg))
480-
@optmath @property allLightScopeMod()()
479+
@optmath @property auto allLightScopeMod()()
481480
{
482481
import mir.qualifier: lightScope;
483-
return lightScope(arg);
482+
return args[0].lightScope;
484483
}
485-
else alias allLightScopeMod = arg;
484+
else alias allLightScopeMod = args[0];
486485
}
487-
else alias allLightScopeMod = arg;
486+
else alias allLightScopeMod = args[0];
488487
alias allLightScope = AliasSeq!(allLightScopeMod, allLightScope!(args[1..$]));
489488
}
490489
else

0 commit comments

Comments
 (0)