diff options
| author | Rutger Broekhoff | 2026-08-28 22:17:10 +0200 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-08-28 22:17:10 +0200 |
| commit | 70643a9e4821bd11c3f363f1708fe420965467d1 (patch) | |
| tree | 65572b58e247248846628940a2aaca197a15d784 /server/src/problem.cppm | |
| parent | 173cd34bdd0717d3f4beeac76b3296ecd46ada0d (diff) | |
| download | routemon-70643a9e4821bd11c3f363f1708fe420965467d1.tar.gz routemon-70643a9e4821bd11c3f363f1708fe420965467d1.zip | |
Format again
Diffstat (limited to 'server/src/problem.cppm')
| -rw-r--r-- | server/src/problem.cppm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/problem.cppm b/server/src/problem.cppm index a124312..a72379a 100644 --- a/server/src/problem.cppm +++ b/server/src/problem.cppm | |||
| @@ -41,13 +41,13 @@ export struct details | |||
| 41 | }; | 41 | }; |
| 42 | 42 | ||
| 43 | export auto tag_invoke( | 43 | export auto tag_invoke( |
| 44 | json::value_from_tag, json::value& jv, details const& details, | 44 | json::value_from_tag, json::value& jv, details const& details, |
| 45 | std::locale locale) -> void | 45 | std::locale locale) -> void |
| 46 | { | 46 | { |
| 47 | auto obj = json::object{ | 47 | auto obj = json::object{ |
| 48 | {"type", details.type_uri}, | 48 | {"type", details.type_uri}, |
| 49 | {"title", details.title.str(locale)}, | 49 | {"title", details.title.str(locale)}, |
| 50 | {"status", static_cast<unsigned>(details.status)}, | 50 | {"status", static_cast<unsigned>(details.status)}, |
| 51 | }; | 51 | }; |
| 52 | if (details.detail) | 52 | if (details.detail) |
| 53 | obj["detail"] = details.detail->str(locale); | 53 | obj["detail"] = details.detail->str(locale); |