From 5172f8b932f84bf58e685910f330d00cec7c90ca Mon Sep 17 00:00:00 2001 From: Cameron Ross Date: Sat, 16 Jun 2018 02:04:48 -0300 Subject: [PATCH] eliminate an unnecessary heap allocation --- source/dyaml/dumper.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dyaml/dumper.d b/source/dyaml/dumper.d index e829633..f518c0e 100644 --- a/source/dyaml/dumper.d +++ b/source/dyaml/dumper.d @@ -270,7 +270,7 @@ struct Dumper { try { - auto emitter = new Emitter(stream_, canonical_, indent_, textWidth_, lineBreak_); + auto emitter = Emitter(stream_, canonical_, indent_, textWidth_, lineBreak_); foreach(ref event; events) { emitter.emit(event);