Skip to content

Commit 0013228

Browse files
committed
Minor cleanup in repo_cloner
1 parent 450f420 commit 0013228

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

gframe/repo_cloner.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
#include "config.h"
44
#include "fmt.h"
55
#include "game_config.h"
6-
#include "porting.h"
76
#include "repo_manager.h"
87
#include "text_types.h"
98
#include "utils.h"
109

1110
#include <cstdlib>
1211
#include <cstdio>
13-
#include <fmt/ranges.h>
1412
#include <map>
1513
#include <memory>
1614
#include <thread>
@@ -40,9 +38,10 @@ struct GitRepoInfoToBePrinted {
4038

4139
template<>
4240
struct fmt::formatter<GitRepoInfoToBePrinted> {
43-
constexpr auto parse(format_parse_context& ctx) { return ctx.begin(); }
44-
template <typename Context>
45-
constexpr auto format(const GitRepoInfoToBePrinted& repo, Context& ctx) const {
41+
template<typename ParseContext>
42+
constexpr auto parse(ParseContext& ctx) { return ctx.begin(); }
43+
template <typename FormatContext>
44+
constexpr auto format(const GitRepoInfoToBePrinted& repo, FormatContext& ctx) const {
4645
return format_to(ctx.out(),
4746
R"("name":"{}","status":"{}","warning_or_error_message":"{}","percentage":{})",
4847
repo.name, repo.status, repo.warning_or_error_message, repo.percentage);

0 commit comments

Comments
 (0)