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