mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
std.algorithm.searching: Fix -dip1000 compilable issues
This commit is contained in:
parent
a5eb8e2aba
commit
a540bb2d0a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue