From 47a0eec2e8a80a004e66aa571506d5ae364304b7 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 29 Dec 2023 09:59:55 -0800 Subject: [PATCH] Remove unnecessary alias --- include/fmt/chrono.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 6a3d38ff..5a31930e 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -409,8 +409,7 @@ inline void do_write(buffer& buf, const std::tm& time, auto&& format_buf = formatbuf>(buf); auto&& os = std::basic_ostream(&format_buf); os.imbue(loc); - using iterator = std::ostreambuf_iterator; - const auto& facet = std::use_facet>(loc); + const auto& facet = std::use_facet>(loc); auto end = facet.put(os, os, Char(' '), &time, format, modifier); if (end.failed()) FMT_THROW(format_error("failed to format time")); }