Merge pull request #2064 from 9rnsr/fix_imports

Supply the lacked local import
This commit is contained in:
Hara Kenji 2014-04-03 13:34:50 +09:00
commit f470f33eb7

View file

@ -595,6 +595,9 @@ void handleOption(R)(string option, R receiver, ref string[] args,
alias K = typeof(receiver.keys[0]); alias K = typeof(receiver.keys[0]);
alias V = typeof(receiver.values[0]); alias V = typeof(receiver.values[0]);
import std.range : only;
import std.typecons : Tuple, tuple;
static Tuple!(K, V) getter(string input) static Tuple!(K, V) getter(string input)
{ {
auto j = std.string.indexOf(input, assignChar); auto j = std.string.indexOf(input, assignChar);
@ -609,8 +612,6 @@ void handleOption(R)(string option, R receiver, ref string[] args,
(*receiver)[k] = v; (*receiver)[k] = v;
} }
import std.range : only;
if (arraySep == "") if (arraySep == "")
setHash(receiver, val.only); setHash(receiver, val.only);
else else