Update fmt to version 6

Summary: As title

Reviewed By: yfeldblum

Differential Revision: D17741047

fbshipit-source-id: e921a2fef99a9b6f11e09758e69d99a54815054a
This commit is contained in:
Victor Zverovich 2020-01-23 19:31:45 -08:00 committed by Facebook Github Bot
parent 29c749ef7d
commit 09618791bd

View File

@ -1781,19 +1781,21 @@ struct hash<facebook::eden::detail::AbsolutePathBase<A>> {
namespace fmt {
template <typename Storage>
struct formatter<facebook::eden::detail::PathComponentBase<Storage>>
: formatter<folly::StringPiece> {
: formatter<string_view> {
using Path = facebook::eden::detail::PathComponentBase<Storage>;
auto format(const Path& p, format_context& ctx) {
return formatter<folly::StringPiece>::format(p.stringPiece(), ctx);
auto sp = p.stringPiece();
return formatter<string_view>::format({sp.data(), sp.size()}, ctx);
}
};
template <typename Storage>
struct formatter<facebook::eden::detail::AbsolutePathBase<Storage>>
: formatter<folly::StringPiece> {
: formatter<string_view> {
using Path = facebook::eden::detail::AbsolutePathBase<Storage>;
auto format(const Path& p, format_context& ctx) {
return formatter<folly::StringPiece>::format(p.stringPiece(), ctx);
auto sp = p.stringPiece();
return formatter<string_view>::format({sp.data(), sp.size()}, ctx);
}
};
} // namespace fmt