From 4f039f9c792d04c360b82a311bc04b2867d30266 Mon Sep 17 00:00:00 2001 From: Mars Date: Mon, 1 Jul 2024 05:25:27 -0400 Subject: [PATCH] bleghg --- src/main.cpp | 6 +++--- src/os/windows.cpp | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 8caf204..f87ee1d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,7 +15,7 @@ constexpr u64 GIB = 1'073'741'824; template <> struct fmt::formatter : formatter { template - fn format(const BytesToGiB BTG, FmtCtx& ctx)->typename FmtCtx::iterator { + fn format(const BytesToGiB BTG, FmtCtx& ctx) -> typename FmtCtx::iterator { typename FmtCtx::iterator out = formatter::format(static_cast(BTG.value) / GIB, ctx); *out++ = 'G'; @@ -25,7 +25,7 @@ struct fmt::formatter : formatter { } }; -fn GetDate()->string { +fn GetDate() -> string { const std::tm localTime = fmt::localtime(time(nullptr)); string date = fmt::format("{:%e}", localTime); @@ -45,7 +45,7 @@ fn GetDate()->string { return fmt::format("{:%B} {}, {:%-I:%0M %p}", localTime, date, localTime); } -fn main()->i32 { +fn main() -> i32 { using std::future; const Config config = Config::getInstance(); diff --git a/src/os/windows.cpp b/src/os/windows.cpp index 5aff406..20618ea 100644 --- a/src/os/windows.cpp +++ b/src/os/windows.cpp @@ -1,5 +1,6 @@ +#include #include -#include // ReSharper disable once CppUnusedIncludeDirective +#include #include #include #include