lib/fmt/ExceptionFormatter: move the exception_ptr

This commit is contained in:
Max Kellermann 2024-09-25 13:29:21 +02:00 committed by Max Kellermann
parent def2221dfd
commit 752c6c1f03
1 changed files with 1 additions and 1 deletions

View File

@ -8,5 +8,5 @@ auto
fmt::formatter<std::exception_ptr>::format(std::exception_ptr e, format_context &ctx) const
-> format_context::iterator
{
return formatter<string_view>::format(GetFullMessage(e), ctx);
return formatter<string_view>::format(GetFullMessage(std::move(e)), ctx);
}