From 09e5a3ccc77bf39adeec4138d5a654afdcc1f02d Mon Sep 17 00:00:00 2001 From: "H. S. Teoh" Date: Wed, 7 Jun 2017 10:31:55 -0700 Subject: [PATCH] Fix bracing style. --- std/traits.d | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/std/traits.d b/std/traits.d index 0056a35912b..de3aa5da170 100644 --- a/std/traits.d +++ b/std/traits.d @@ -7656,13 +7656,15 @@ template getUDAs(alias symbol, alias attribute) * This is not recursive; it will not search for symbols within symbols such as * nested structs or unions. */ -template getSymbolsByUDA(alias symbol, alias attribute) { +template getSymbolsByUDA(alias symbol, alias attribute) +{ import std.format : format; import std.meta : AliasSeq, Filter; // translate a list of strings into symbols. mixing in the entire alias // avoids trying to access the symbol, which could cause a privacy violation - template toSymbols(names...) { + template toSymbols(names...) + { static if (names.length == 0) alias toSymbols = AliasSeq!(); else