From 07599b09b5d0404d7dc64db4696c722ec637db77 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Fri, 6 Jul 2018 01:05:27 +0200 Subject: [PATCH] Fix the std.digest.digest deprecation message --- mongodb/vibe/db/mongo/settings.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;