migrate some more code to mu_format / join_paths

Let's modernize a bit.
This commit is contained in:
Dirk-Jan C. Binnema
2023-07-20 18:36:00 +03:00
parent 8c11f6f71f
commit 7b38f094c4
6 changed files with 29 additions and 34 deletions

View File

@ -38,7 +38,7 @@ save_part(const Message::Part& part, size_t idx, const Options& opts)
* cooking */
const auto path{targetdir +
part.cooked_filename(opts.extract.uncooked)
.value_or(format("part-%zu", idx))};
.value_or(mu_format("part-{}", idx))};
if (auto&& res{part.to_file(path, opts.extract.overwrite)}; !res)
return Err(res.error());