From 56097fd10620a0047f563dcde7f85667f4f59f3f Mon Sep 17 00:00:00 2001 From: BBasile Date: Thu, 6 Sep 2018 01:01:08 +0200 Subject: [PATCH] Deprecate enforce ex (#377) Deprecate enforce ex merged-on-behalf-of: BBasile --- src/dfmt/main.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dfmt/main.d b/src/dfmt/main.d index df4cda3..c229ab9 100644 --- a/src/dfmt/main.d +++ b/src/dfmt/main.d @@ -85,9 +85,9 @@ else void handleBooleans(string option, string value) { import dfmt.editorconfig : OptionalBoolean; - import std.exception : enforceEx; + import std.exception : enforce; - 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)