Merge pull request #182 from BBasile/style-body-do
\s\body\do merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
commit
46db7d3ba2
|
@ -118,7 +118,7 @@ struct Dumper(Range)
|
|||
{
|
||||
assert(indent != 0, "Can't use zero YAML indent width");
|
||||
}
|
||||
body
|
||||
do
|
||||
{
|
||||
indent_ = indent;
|
||||
}
|
||||
|
|
|
@ -195,7 +195,7 @@ struct Loader
|
|||
{
|
||||
assert(!done_, "Loader: Trying to load YAML twice");
|
||||
}
|
||||
body
|
||||
do
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -258,7 +258,7 @@ struct Loader
|
|||
{
|
||||
assert(!done_, "Loader: Trying to load YAML twice");
|
||||
}
|
||||
body
|
||||
do
|
||||
{
|
||||
scope(exit) { done_ = true; }
|
||||
try
|
||||
|
|
|
@ -414,7 +414,7 @@ struct Node
|
|||
"Lengths of keys and values arrays to construct " ~
|
||||
"a YAML node from don't match");
|
||||
}
|
||||
body
|
||||
do
|
||||
{
|
||||
tag_ = tag;
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ string[][string] findTestFilenames(const string dir) @trusted
|
|||
*/
|
||||
void stringsToTuple(uint index, F ...)(ref F tuple, const string[] strings)
|
||||
in{assert(F.length == strings.length);}
|
||||
body
|
||||
do
|
||||
{
|
||||
tuple[index] = strings[index];
|
||||
static if(index > 0){stringsToTuple!(index - 1, F)(tuple, strings);}
|
||||
|
|
Loading…
Reference in a new issue