update_checker.cpp: Use fmt::format instead of std::format

It seems that certain environments still don't have access to `std::format` yet, and I missed this because it built fine on my machine and CI passed because the code using `std::format` wasn't included in non-tagged builds.
This commit is contained in:
OpenSauce04 2025-05-27 13:50:23 +01:00
parent 41ad2ef78d
commit 1277e84794

View File

@ -4,6 +4,7 @@
#include <optional> #include <optional>
#include <string> #include <string>
#include <fmt/format.h>
#include <httplib.h> #include <httplib.h>
#include <json.hpp> #include <json.hpp>
#include "common/logging/log.h" #include "common/logging/log.h"
@ -67,7 +68,7 @@ std::optional<std::string> UpdateChecker::GetLatestRelease(bool include_prerelea
const std::string latest_tag = const std::string latest_tag =
nlohmann::json::parse(tags_response.value()).at(0).at("name"); nlohmann::json::parse(tags_response.value()).at(0).at("name");
const bool latest_tag_has_release = const bool latest_tag_has_release =
releases_response.value().find(std::format("\"{}\"", latest_tag)) != releases_response.value().find(fmt::format("\"{}\"", latest_tag)) !=
std::string::npos; std::string::npos;
// If there is a newer tag, but that tag has no associated release, don't prompt the // If there is a newer tag, but that tag has no associated release, don't prompt the