diff --git a/source/dub/compilers/compiler.d b/source/dub/compilers/compiler.d index b647aa5..b346f14 100644 --- a/source/dub/compilers/compiler.d +++ b/source/dub/compilers/compiler.d @@ -94,7 +94,7 @@ foreach (f; compiler_flags) { foreach (sf; s_specialFlags) { - if (sf.flags.canFind!(sff => f == sff || (sff.endsWith("=") && f.startsWith(sff)))) { + if (sf.flags.any!(sff => f == sff || (sff.endsWith("=") && f.startsWith(sff)))) { outputPreamble(); logWarn("%s: %s", f, sf.alternative); break; diff --git a/source/dub/project.d b/source/dub/project.d index 0094a5f..ea20cf0 100644 --- a/source/dub/project.d +++ b/source/dub/project.d @@ -243,7 +243,7 @@ } bool haveConfig(string pack, string config) { - return configs.canFind!(c => c.pack == pack && c.config == config); + return configs.any!(c => c.pack == pack && c.config == config); } size_t createEdge(size_t from, size_t to) { @@ -507,7 +507,7 @@ // Check against package list and add retrieval actions Action[] actions; void addAction(Action act) { - if (!actions.canFind!(a => a.type == act.type && a.location == act.location && a.packageId == act.packageId && a.vers == act.vers)) + if (!actions.any!(a => a.type == act.type && a.location == act.location && a.packageId == act.packageId && a.vers == act.vers)) actions ~= act; } int[string] upgradePackages;