From 4aeb6eb00dc599bd737b585f2b5f304becc3296b Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Thu, 26 Jul 2018 20:39:53 +0200 Subject: [PATCH 1/2] Replaced deprecated enforceEx with enforce --- src/dfmt/main.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dfmt/main.d b/src/dfmt/main.d index df4cda3..273ad2c 100644 --- a/src/dfmt/main.d +++ b/src/dfmt/main.d @@ -87,7 +87,7 @@ else import dfmt.editorconfig : OptionalBoolean; import std.exception : enforceEx; - enforceEx!GetOptException(value == "true" || value == "false", "Invalid argument"); + enforce!GetOptException(value == "true" || value == "false", "Invalid argument"); immutable OptionalBoolean optVal = value == "true" ? OptionalBoolean.t : OptionalBoolean.f; switch (option) From 21411a1059de1d32f7919c238b0791adf4ae448f Mon Sep 17 00:00:00 2001 From: BBasile Date: Thu, 6 Sep 2018 00:36:40 +0200 Subject: [PATCH 2/2] fix the selective import --- src/dfmt/main.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dfmt/main.d b/src/dfmt/main.d index 273ad2c..c229ab9 100644 --- a/src/dfmt/main.d +++ b/src/dfmt/main.d @@ -85,7 +85,7 @@ else void handleBooleans(string option, string value) { import dfmt.editorconfig : OptionalBoolean; - import std.exception : enforceEx; + import std.exception : enforce; enforce!GetOptException(value == "true" || value == "false", "Invalid argument"); immutable OptionalBoolean optVal = value == "true" ? OptionalBoolean.t