mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 07:00:37 +03:00
Merge pull request #2064 from 9rnsr/fix_imports
Supply the lacked local import
This commit is contained in:
commit
f470f33eb7
1 changed files with 3 additions and 2 deletions
|
@ -595,6 +595,9 @@ void handleOption(R)(string option, R receiver, ref string[] args,
|
|||
alias K = typeof(receiver.keys[0]);
|
||||
alias V = typeof(receiver.values[0]);
|
||||
|
||||
import std.range : only;
|
||||
import std.typecons : Tuple, tuple;
|
||||
|
||||
static Tuple!(K, V) getter(string input)
|
||||
{
|
||||
auto j = std.string.indexOf(input, assignChar);
|
||||
|
@ -609,8 +612,6 @@ void handleOption(R)(string option, R receiver, ref string[] args,
|
|||
(*receiver)[k] = v;
|
||||
}
|
||||
|
||||
import std.range : only;
|
||||
|
||||
if (arraySep == "")
|
||||
setHash(receiver, val.only);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue