Get rid of std.conv, it's not needed here

This commit is contained in:
King_DuckZ 2014-09-26 17:41:03 +02:00
parent ccd78538f3
commit 528467ca8e

View file

@ -18,7 +18,6 @@
import std.regex; import std.regex;
import std.stdio; import std.stdio;
import std.file : isDir; import std.file : isDir;
import std.conv;
import std.string; import std.string;
import tiger; import tiger;
import std.exception; import std.exception;
@ -87,7 +86,7 @@ bool checkSums (in string parFile, in string parCWD, bool parTiger2, string parF
} }
if (m) { 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); writef("%s: ", capt_filename);
const string curr_path = parCWD ~ 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; continue;
} }
const string curr_tiger = tigerToString(getTiger(curr_file, parTiger2)); 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) { if (check_tiger == curr_tiger) {
writeln("OK"); writeln("OK");
} }