THRIFT-3162 Rename the 'format' parameter to disambiguate from std.format's format.
Client: D
Patch: Phongphan Phuttha <phongphan@acm.org>
This closes #502
diff --git a/lib/d/src/thrift/base.d b/lib/d/src/thrift/base.d
index 5de13c5..57aec18 100644
--- a/lib/d/src/thrift/base.d
+++ b/lib/d/src/thrift/base.d
@@ -93,7 +93,7 @@
// This should be private, if it could still be used through the aliases then.
template logFormatted(alias target) {
void logFormatted(string file = __FILE__, int line = __LINE__,
- T...)(string format, T args) if (
+ T...)(string fmt, T args) if (
__traits(compiles, { target(""); })
) {
import std.format, std.stdio;
@@ -107,9 +107,9 @@
formattedWrite(g_formatBuffer, "%s:%s: ", file, line);
static if (T.length == 0) {
- g_formatBuffer.put(format);
+ g_formatBuffer.put(fmt);
} else {
- formattedWrite(g_formatBuffer, format, args);
+ formattedWrite(g_formatBuffer, fmt, args);
}
target(g_formatBuffer.data);
}