diff --git a/source/vibe/internal/string.d b/source/vibe/internal/string.d index 9ec6ac5a..6e227dd2 100644 --- a/source/vibe/internal/string.d +++ b/source/vibe/internal/string.d @@ -185,8 +185,8 @@ ptrdiff_t matchBracket(string str, bool nested = true) string formatAlloc(ARGS...)(IAllocator alloc, string fmt, ARGS args) { auto app = AllocAppender!string(alloc); - formattedWrite(&app, fmt, args); - return app.data; + formattedWrite(() @trusted { return &app; } (), fmt, args); + return () @trusted { return app.data; } (); } /// Special version of icmp() with optimization for ASCII characters