mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 06:18:07 +03:00
Update fmt to version 6
Summary: As title Reviewed By: yfeldblum Differential Revision: D17741047 fbshipit-source-id: e921a2fef99a9b6f11e09758e69d99a54815054a
This commit is contained in:
parent
29c749ef7d
commit
09618791bd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user