Move folly/Hash.h to folly/hash/, leaving a shim
[folly.git] / folly / Format-inl.h
index 940224c2bf60e39a2cad2eda016d681d454b550e..60fdf2452c62a1a27768ed9668c0b588e8cf7525 100644 (file)
@@ -931,7 +931,7 @@ template <>
 struct KeyFromStringPiece<fbstring> : public FormatTraitsBase {
   typedef fbstring key_type;
   static fbstring convert(StringPiece s) {
-    return s.toFbstring();
+    return s.to<fbstring>();
   }
 };