mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
chore: fix minor clang-tidy warnings (#6275)
This commit is contained in:
@@ -223,7 +223,7 @@ public:
|
||||
{
|
||||
if (auto const parsed = tr_urlParse(base_url); parsed)
|
||||
{
|
||||
return fmt::format(FMT_STRING("{:s}:{:d}"), parsed->host, parsed->port);
|
||||
return fmt::format("{:s}:{:d}", parsed->host, parsed->port);
|
||||
}
|
||||
|
||||
return base_url;
|
||||
@@ -513,7 +513,7 @@ void task_request_next_chunk(tr_webseed_task* task)
|
||||
auto url = tr_urlbuf{};
|
||||
makeUrl(webseed, tor->file_subpath(file_index), std::back_inserter(url));
|
||||
auto options = tr_web::FetchOptions{ url.sv(), onPartialDataFetched, task };
|
||||
options.range = fmt::format(FMT_STRING("{:d}-{:d}"), file_offset, file_offset + this_chunk - 1);
|
||||
options.range = fmt::format("{:d}-{:d}", file_offset, file_offset + this_chunk - 1);
|
||||
options.speed_limit_tag = tor->id();
|
||||
options.buffer = task->content();
|
||||
tor->session->fetch(std::move(options));
|
||||
|
||||
Reference in New Issue
Block a user