From b189049ab4d1b8d31f04f24fbb849deb2598a22f Mon Sep 17 00:00:00 2001 From: Mars Date: Thu, 1 Aug 2024 05:31:50 +0000 Subject: [PATCH] small things --- .clang-tidy | 1 + src/main.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index 7a11fae..da712a4 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -9,6 +9,7 @@ Checks: > -cppcoreguidelines-avoid-magic-numbers, -cppcoreguidelines-owning-memory, -cppcoreguidelines-pro-type-member-init, + -cppcoreguidelines-pro-type-vararg, -fuchsia-*, -google-*, -hicpp-*, diff --git a/src/main.cpp b/src/main.cpp index 47bd442..9c4b302 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,6 +11,7 @@ struct BytesToGiB { u64 value; }; +// 1024^3 (size of 1 GiB) constexpr u64 GIB = 1'073'741'824; template <> @@ -54,7 +55,7 @@ fn main() -> i32 { const Config& config = Config::getInstance(); // Fetching weather information - auto weather = config.weather.get(); + Weather weather = config.weather.get(); WeatherOutput weatherInfo = weather.getWeatherInfo(); // Fetching OS version