std.algorithm.searching: Fix -dip1000 compilable issues

This commit is contained in:
carblue 2018-03-17 11:56:39 +01:00
parent a5eb8e2aba
commit a540bb2d0a

View file

@ -297,7 +297,7 @@ private:
ptrdiff_t[ElementType!(Range)] occ; // GC allocated
Range needle;
ptrdiff_t occurrence(ElementType!(Range) c)
ptrdiff_t occurrence(ElementType!(Range) c) scope
{
auto p = c in occ;
return p ? *p : -1;
@ -360,7 +360,7 @@ public:
}
///
Range beFound(Range haystack)
Range beFound(Range haystack) scope
{
import std.algorithm.comparison : max;