From 706320076ab1a7ae62f0e979206a2e5cadc51705 Mon Sep 17 00:00:00 2001 From: Vladiwostok Date: Sun, 12 Jan 2025 17:41:43 +0200 Subject: [PATCH] Fix linting issue in functional.d --- std/functional.d | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/std/functional.d b/std/functional.d index cf7e3ff8cc2..b1b1382280d 100644 --- a/std/functional.d +++ b/std/functional.d @@ -1349,7 +1349,8 @@ template memoize(alias fun) alias memoize = impl; } - auto impl(Args...)(Args args) if (is(typeof(fun(args)))) + auto impl(Args...)(Args args) + if (is(typeof(fun(args)))) { import std.typecons : Tuple, tuple; import std.traits : Unqual; @@ -1393,7 +1394,8 @@ template memoize(alias fun, uint maxSize) alias memoize = impl; } - auto impl(Args...)(Args args) if (is(typeof(fun(args)))) + auto impl(Args...)(Args args) + if (is(typeof(fun(args)))) { static if (args.length > 0) {