diff --git a/src/sums.d b/src/sums.d index 788c329..81f26d1 100644 --- a/src/sums.d +++ b/src/sums.d @@ -18,7 +18,6 @@ import std.regex; import std.stdio; import std.file : isDir; -import std.conv; import std.string; import tiger; import std.exception; @@ -87,7 +86,7 @@ bool checkSums (in string parFile, in string parCWD, bool parTiger2, string parF } if (m) { - const string capt_filename = to!string(m.captures[index_file]); + const string capt_filename = cast(string)m.captures[index_file]; writef("%s: ", capt_filename); const string curr_path = parCWD ~ capt_filename; @@ -102,7 +101,7 @@ bool checkSums (in string parFile, in string parCWD, bool parTiger2, string parF continue; } const string curr_tiger = tigerToString(getTiger(curr_file, parTiger2)); - const string check_tiger = to!string(m.captures[index_hash]).toLower; + const string check_tiger = (cast(string)m.captures[index_hash]).toLower; if (check_tiger == curr_tiger) { writeln("OK"); }