From c0487ac9d44b72f79d7957cf65b91a8c6920a9a7 Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Tue, 6 Jan 2026 10:03:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BD=20isCallable,=20?= =?UTF-8?q?=D1=82.=D0=BA.=20=5F=5Ftraits=20=D0=B8=20=D1=82=D0=B0=D0=BA=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D1=8F=D0=B5=D1=82,=20?= =?UTF-8?q?=D1=87=D1=82=D0=BE=20=D0=B2=D1=8B=D0=B7=D0=BE=D0=B2=20=D0=B2?= =?UTF-8?q?=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=B5=D0=BD.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ncui/lib/checks.d | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/ncui/lib/checks.d b/source/ncui/lib/checks.d index dd94588..41fd22a 100644 --- a/source/ncui/lib/checks.d +++ b/source/ncui/lib/checks.d @@ -1,6 +1,6 @@ module ncui.lib.checks; -import std.traits : isCallable, isPointer; +import std.traits : isPointer; import std.exception : enforce; import std.format : format; @@ -27,7 +27,7 @@ auto ncuiExpect(alias fn, Expected, Args...)( size_t line = __LINE__, string module_ = __MODULE__, string function_ = __FUNCTION__ -) if (isCallable!fn && __traits(compiles, fn(args))) +) if (__traits(compiles, fn(args))) { auto result = fn(args); @@ -56,7 +56,7 @@ auto ncuiExpectMsg(alias fn, Expected, Args...)( size_t line = __LINE__, string module_ = __MODULE__, string function_ = __FUNCTION__ -) if (isCallable!fn && __traits(compiles, fn(args))) +) if (__traits(compiles, fn(args))) { auto result = fn(args); @@ -83,7 +83,7 @@ int ncuiNotErr(alias fn, Args...)( size_t line = __LINE__, string module_ = __MODULE__, string function_ = __FUNCTION__ -) if (isCallable!fn && __traits(compiles, fn(args))) +) if (__traits(compiles, fn(args))) { auto result = fn(args); @@ -109,7 +109,7 @@ auto ncuiNotNull(alias fn, Args...)( size_t line = __LINE__, string module_ = __MODULE__, string function_ = __FUNCTION__ -) if (isCallable!fn && __traits(compiles, fn(args))) +) if (__traits(compiles, fn(args))) { auto result = fn(args);