From 24c1f886afc35278ba95556345adcb9804f4c4f1 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Mon, 1 Jul 2024 21:24:33 +0500 Subject: [PATCH] Remove double has_value check (#4040) Signed-off-by: Vladislav Shchapov --- include/fmt/std.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/std.h b/include/fmt/std.h index 01a61cee..528e4f1c 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -291,7 +291,7 @@ struct formatter, Char, if (value.has_value()) { out = detail::write(out, "expected("); - out = detail::write_escaped_alternative(out, value.value()); + out = detail::write_escaped_alternative(out, *value); } else { out = detail::write(out, "unexpected("); out = detail::write_escaped_alternative(out, value.error());