diff --git a/mongodb/vibe/db/mongo/settings.d b/mongodb/vibe/db/mongo/settings.d index 1b5c9f04e4..f1a18761c7 100644 --- a/mongodb/vibe/db/mongo/settings.d +++ b/mongodb/vibe/db/mongo/settings.d @@ -13,7 +13,10 @@ import vibe.db.mongo.flags : QueryFlags; import vibe.inet.webform; import std.conv : to; -import std.digest.digest : toHexString; +static if (__VERSION__ >= 2076) + import std.digest : toHexString; +else + import std.digest.digest : toHexString; import std.digest.md : md5Of; import std.algorithm : splitter, startsWith; import std.string : icmp, indexOf, toLower;